Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Timer crashes app

Status
Not open for further replies.

JJayUK

Programmer
Dec 18, 2001
57
0
0
GB
I have an application reading performance counters and representing the data returned in a set of progress bars.

The timer triggers every 100 milliseconds and reads the next performance counter before updating the progress bar with the new value.

My form crashs whenever I try to close it, though, and I've pinned it down to the timer. When I try to disabled/stop it.

Anyone experienced this before?

Regards,
JJayUK
 
Have you considered using a separate thread? Or is that what you are already doing? You could make the thread sleep for .1 seconds and check the next performance counter. I'm not familiar with a timer per se - just using threads.
 
an instance of Timer starts it's own thread to run in anyway socrates.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top