G
Guest
I am writing a C# UI that must poll a scale device and update the some
controls with the current scale weight. I am now using the
System.Threading.Timer class. This seems to work OK except for shutting down
the timer thread. I want to be able to shutdown the polling thread and start
a new polling thread at will, but I do not think that when I call the timer's
Dispose method it is being shutdown.
My first questions are:
1) How to shutdown the System.Threading.Timer thread ?
2) Are there other bettier ways of doing the polling?
Thanks.
controls with the current scale weight. I am now using the
System.Threading.Timer class. This seems to work OK except for shutting down
the timer thread. I want to be able to shutdown the polling thread and start
a new polling thread at will, but I do not think that when I call the timer's
Dispose method it is being shutdown.
My first questions are:
1) How to shutdown the System.Threading.Timer thread ?
2) Are there other bettier ways of doing the polling?
Thanks.