473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

MediaDet and StreamWriter (C#)


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...
Nov 17 '05 #1
2 4035
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..
--
RicercatoreSbadato

RicercatoreSbadato wrote:

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...

Nov 17 '05 #2
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.

--
RicercatoreSbadato
Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Vladimir Bezugliy | last post by:
I have a server that listen a socket. And I have next client: TcpClient socketForServer = new TcpClient("IVBEZUGLIY", 21000); NetworkStream networkStream = socketForServer.GetStream();...
4
by: Majed | last post by:
Hi , all I'm trying to write unicode to a file for another app (not developed with vs2003) to read it. I used StreamWriter with unicode encoding.but I was surprised that the streamwriter adds FFFE...
9
by: ShadowOfTheBeast | last post by:
Hi, I have got a major headache understanding streamReader and streamWriter relationship. I know how to use the streamreader and streamwriter independently. but how do you write out using the...
4
by: rex64 | last post by:
I am getting an error message and I have not been able to figure hot how to fix it. I have done some research with no answers yet. I found this code that may help? Not sure what to do with it....
1
by: RicercatoreSbadato | last post by:
I 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... -- RicercatoreSbadato
0
by: RicercatoreSbadato | last post by:
I am taking the video frames with the MediaDet Class. The problem is that I can't find how to know the exact width and height of the frame of the video... Any ideas?
10
by: Oscar Thornell | last post by:
Hi, I generate and temporary saves a text file to disk. Later I upload this file to Microsoft MapPoint (not so important). The file needs to be in UTF-8 encoding and I explicitly use the...
2
by: Hartmut Schroth | last post by:
Hi, I want to develop a VB.NET application for saving video frames (e.g. from an AVI file) to a JPEG-file and want to use the MediaDet object of DirectShow Editing Services for that. The...
3
by: Hartmut Schroth | last post by:
Hi, I want to use the Dexter 1.0 Type library in a VB.NET Web project. So I created a project reference to the com object Interop.DexterLib.dll and added the following code to the load...
1
by: Max Powers | last post by:
Hello, I have a VB.NET code that creates a StreamWriter file first and then it does a series of procedures that write lines for this StreamWriter. When all the procedures are done, the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.