473,508 Members | 2,515 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4043
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
3518
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
2441
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
4569
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
20535
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
366
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
1422
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
4611
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
5962
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
2148
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
3977
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
7231
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7405
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...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5643
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5059
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3214
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
435
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.