Problem with System.Timers.Timer not firing Print

  • 0

Problem with System.Timers.Timer not firing in a Windows service

Microsoft currently recommends that the System.Threading.Timer namespace objects be used instead of the System.Timers.Timer objects. The basic issue at work is Server-based timers use the thread pool internally, and the event handler runs in a thread taken from the pool. For this reason, conflicts might occur while the event handler is accessing shared variables and modifying controls and forms, and can result is issues such as System.Timers.Timer not firing.

Was this answer helpful?

« Back