IFileSinkFilter bug - won't close file???

From: Jon Evans (JonEvans_at_discussions.microsoft.com)
Date: 08/16/04


Date: Mon, 16 Aug 2004 08:17:02 -0700

I have a graph that records to a file. Great, lets call
that file #1. I then stop the graph and call IFileSinkFilter's
SetFileName() function to record a different file, #2.

However now file 2 is being recorded I expect to be able
to open file #1 ... only I can't, I get a sharing violation
error.

e.g. IMediaDet::put_Filename( file#1 ) returns an error
which DXGetErrorString9() decodes as
"ERROR_SHARING_VIOLATION". I can only
open the file after exiting and restarting my application.

So, clearly IFileSinkFilter doesn't properly release a file
it has finished with. Is this a known bug and more
importantly anyone have a workaround ?

TTFN,
   Jon



Relevant Pages

  • Re: Export Graph to Powerpoint via Code
    ... Thanks, Troy. ... > graph to be) and the Slide number that the PPt Graph is on. ... > the open file dialog and allow you to select the presentation. ... > ' Create the Powerpoint application. ...
    (microsoft.public.access.modulesdaovba)
  • Re: Export Graph to Powerpoint via Code
    ... graph to be) and the Slide number that the PPt Graph is on. ... the open file dialog and allow you to select the presentation. ... ' Create the Powerpoint application. ... Set Pres = CreateObject ...
    (microsoft.public.access.modulesdaovba)
  • Re: Capture Graph with VMR9 in Windowless mode
    ... graph and re-start capturing. ... Thanks for posting your workaround. ... graph was unloaded and reloaded. ...
    (microsoft.public.win32.programmer.directx.video)
  • Re: I cant edit the graph .
    ... Can you please try the workaround at ... Intel-based Mac? ... I am having a problem with my microsoft graph. ... So I can't edit the graph. ...
    (microsoft.public.mac.office.powerpoint)
  • Re: get Exported/Imported Keys() doesnt work with JDBC-ODBC
    ... > problem of building a graph of the database relationships. ... > know if is there any workaround for this, but so far I was unable to solve ... FROM MSYSRELATIONSHIPS ...
    (comp.lang.java.databases)