Re: The big Debate on DoEvents
- From: "Dave" <davesauny@xxxxxxxxx>
- Date: 14 Jun 2006 07:13:25 -0700
But....
Using System.threading.thread.sleep(xxx) doesnt keep the window alive
as far as i can tell...
Heres how the overall thing works. I have a c# class which deals with
sending, receiving etc. from the serial port. When the serial port
receives a certain line ie. "Hello World" an event is raised to my
vb.net program. Upon receiving this event I plot a point on a graph
and update my progress bar (also through a raiseevent) It can occur
that I receive around 10000 of these certain lines in one sitting and
therefore the c# event is fired 10000.
The problem lies in that while the system is receiving information from
the serial port, they must be able to continue doing things, (moving
windows, selecting windows etc.) I dont know how i can thread this
system when it only responds to events raised in the c# module of
serial communications. If i create a thread and tell it to raise the
event from the c# code will that then run all the code in the vb stuff
in a seperate thread?
thanks
Dave
.
- Follow-Ups:
- Re: The big Debate on DoEvents
- From: Brian Gideon
- Re: The big Debate on DoEvents
- References:
- The big Debate on DoEvents
- From: Dave
- Re: The big Debate on DoEvents
- From: Cor Ligthert [MVP]
- Re: The big Debate on DoEvents
- From: Brian Gideon
- The big Debate on DoEvents
- Prev by Date: Re: Help! Monitoring Process with Different Threads Error
- Next by Date: Array Problems - still cant get something set up right.
- Previous by thread: Re: The big Debate on DoEvents
- Next by thread: Re: The big Debate on DoEvents
- Index(es):
Relevant Pages
|