Stupid windows timers

  • Thread starter Thread starter Dave Sauny
  • Start date Start date
D

Dave Sauny

Heres the scenario,

I have an external device on a com port. I communicate with it using
serial commands. on my form i have a windows.forms.timer which reads
information off of it every 0.5 seconds. whilst any commands are
being sent or received from the external device, no other method can
send or receive from it. Only problem is i can't seem to get this
mutual exclusion working.

I have created a semaphore to only allow one thread access to the
device at any one time but this does not seem to work. Is there some
other way I can go about this?

thanks
 
Why not use smart System.Timers.Timer and set Timer.AutoReset Property to
False, then ...
 

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

Back
Top