IFileSinkFilter bug - won't close file???
From: Jon Evans (JonEvans_at_discussions.microsoft.com)
Date: 08/16/04
- Next message: Jeremy Noring: "Re: IFileSinkFilter bug - won't close file???"
- Previous message: enze: "Re: How to stop capturing a file?"
- Next in thread: Jeremy Noring: "Re: IFileSinkFilter bug - won't close file???"
- Reply: Jeremy Noring: "Re: IFileSinkFilter bug - won't close file???"
- Messages sorted by: [ date ] [ thread ]
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
- Next message: Jeremy Noring: "Re: IFileSinkFilter bug - won't close file???"
- Previous message: enze: "Re: How to stop capturing a file?"
- Next in thread: Jeremy Noring: "Re: IFileSinkFilter bug - won't close file???"
- Reply: Jeremy Noring: "Re: IFileSinkFilter bug - won't close file???"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|