MediaDet and StreamWriter (C#)

  • Thread starter Thread starter RicercatoreSbadato
  • Start date Start date
R

RicercatoreSbadato

RicercatoreSbadatoI have some big problems with the StreamWriter and
MediaDet. I have read
that StreamWriter isn't threadsafe from the MSDN.. I have used a lock()
but nothing...
 
I've tried to do a normal thread and to use StreamWriter inside it. It
goes. Then I think is MediaDetClass that create some problems..
 
I've found the solution: I used a name of file with the StreamWriter
like "log.txt"; I've discovered that when I use a OpenFileDialog() the
path where the file was saved CHANGED !

Then the error was this. I used the OpenFileDialog and the path changed
continuously...

I hope other people don't waste their time like me with this damned
problem ;)

PS - MediaDet is an instrument to grab the bitmaps from a lot type of
video. It is provided by DirectX SDK.
 
Back
Top