Cant get the timer working with windows Service.

  • Thread starter Thread starter dhulapati
  • Start date Start date
D

dhulapati

I cant get the timer working with the windows service. I have the
timer set to 3600 ms. It polls only for Start and Stop but not at
intervals. The timer1.tick event handler is called at the
initializecomponent()
OnStart () enables the timer1 and OnStop() disables the timer1.

Can anybody help?
 
Did you add the event handler?

timer = new System.Timers.Timer(interval);
timer.Elapsed += new ElapsedEventHandler( this.ServiceTimer_Tick );
 
Back
Top