About System.Windows.Forms.Timer, Stop, and GC under heavy load.
quote from Forms.Timer.Stop() MSDN documentation:
A timer that is disabled is subject to garbage collection.The application code I work on happens to do things such as: Under heavy loads, the timer sometimes seems not to restart anymore at some point (= the timer get dead). Given the documentation, I strongly suspect (could not hook the Disposed event yet but it may help!) the GC to do some job precisely between Stop() and Start(). I'm probably going to put a GC.KeepAlive(timer) at the end of MyTickEventHandler to ensure that no garbage collection occurs on timer. I'm just curious here, did anyone meet this situation before ? kind regards Thibaut
void MyTickEventHandler()
{
timer.Stop();
/*do a bit of work */
timer.Start();
}

