I've got a timer that won't trigger the associated function when the time runs out. I did set a Tick
event. I set the Interval
property to 12000
and I did myTimerObject.Start();
.
I did however set off this timer in a seperate thread (somewhere in a BackgroundWorker
). My theory is that even though the timer seems to start correctly, the thread is destroyed once the BackgroundWorker
's associated DoWork
function is done executing and this in turn causes the timer event to be destroyed too.
Is this true? Are there other possible reasons why the timer event doesn't occur?