I have a timer that does not start a related function when time runs out. I set the event Tick. I set the property Intervalto 12000and I did myTimerObject.Start();.
However, I made this timer in a separate thread (somewhere in BackgroundWorker). My theory is that although the timer seems to start correctly, the thread is destroyed after the BackgroundWorkerfunction is executed DoWork, and this, in turn, also destroys the timer event.
It's true? Are there other possible reasons why the timer event does not occur?
source
share