Jon Evans
2004-08-16 15:17:02 UTC
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
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