In VisualStudio 2003 a System.Threading.Timer is created as follows:
c# code:
TimeSpan sleepTime = ...
_timer = new Timer(new TimerCallback(run), null, sleepTime, TimeSpan.Zero);
...
private void run(object state) {
stopTimer();
...
}
private void stopTimer() {
if (_timer != null) {
_timer.Dispose();
_timer = null;
}
}
In certain cases the timer triggers immediately eventhough the sleepTime is
several days from now but less than 2^31 milliseconds
Whenever this has happened it seems as if the only way to get the framework
to behave normally again is to reboot.
Does the Knowledge Base article 814861 regarding an unhandled exception
error occuring in the Timer control in Visual Studio .NET 2003 fix this
problem, or are the problems not related at all?
Thanks