Re: The big Debate on DoEvents



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

.



Relevant Pages

  • Re: Will Windows 7 be a laptop upgrade nightmare?
    ... keyboard and receiver that used the serial port. ... DOS but failed under later copies of Windows. ... But on second thought, you said you're sending and receiving Morse code; that sounds pretty time critical, which emulators are not. ...
    (comp.sys.laptops)
  • Re: Flow Control on Serial Device
    ... I found out that if I just reboot my pc from Windows to Linux ttyS0 behaves ... Then I see in Linux the same status as in WT: rts on, ... means your serial port is not active... ...
    (comp.os.linux.networking)
  • Re: Multimedia Timer
    ... First, as already observed, WIndows is *not* a real-time system, and 20ms events are ... Does the recipient of the serial port data need to receive one "chunk" ... delete buffer; ... That's because I need those 20ms delay between two requests. ...
    (microsoft.public.vc.mfc)
  • Re: The big Debate on DoEvents
    ... receiving etc. from the serial port. ... Upon receiving this event I plot a point on a graph ... windows, selecting windows etc.) I dont know how i can thread this ... If true the method is executing on a thread other than the ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Flow Control on Serial Device
    ... I use exactly the same cable as with the windows program. ... I also tried to set RTS on and off via ioctl, ... indeed a straight through cable? ... properly configure your serial port, ...
    (comp.os.linux.networking)