Using Waitable Timer APIs with VB.NET.

S

Sam

Hello:
Can anyone provide me some idea on how to replace the Sleep method.
Major Disadvantage that I have been facing with the Sleep method is
that the
application freezes during the sleep time and does not respond to any
other events like the
-- onComm event of the Serial port. I have been using a serial port
class in VB.NET as serial port component does not exist in VB.NET.

I am looking for somedata on how to use Waitable Timer APIs with
VB.NET.

Thanks in Advance

Please look at the link below for more information on waitable API
timers:
http://groups.google.com/group/micr...ait+Timer+class&rnum=1&hl=en#01963709a1ee9f8e
 
G

Guest

Hello:
Can anyone provide me some idea on how to replace the Sleep method.
Major Disadvantage that I have been facing with the Sleep method is
that the
application freezes during the sleep time and does not respond to any
other events like the
-- onComm event of the Serial port. I have been using a serial port
class in VB.NET as serial port component does not exist in VB.NET.

Thread.Sleep should not hang your GUI thread - are you running the
procedure in a new thread?

You can also look into async event handlers - this lets you fire a function
off and do the processing asychronously.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top