I know that there are three types of timers in .NET (see Comparing Timer Classes in the .NET Framework Class Library ). I chose a multi-threaded timer, as other types can drift if the main thread is busy, and I need it to be reliable.
The way this timer works in timer control is placed in another thread, so it can always tick off with the start of work completed in the parent thread when it is not busy.
The problem with this timer in the console application is that while the timer is running in another thread, the main thread does nothing to shut the application down.
I tried to add a while true , but then the main thread is too busy when the timer goes off.
John Aug 01 '08 at 12:43 2008-08-01 12:43
source share