Timer Control

  • Thread starter Thread starter source
  • Start date Start date
S

source

I have a timer control in a NT service project.
I set the the Enable property of the timer to TRUE in the Constructor of my
class.

The tick event never gets fired when I debug my NT service (I do attach the
process to debug it)
Am I doing anything wrong ?

NT service project
OnStart event I log into the event log, it gets logged.
I also log in my Ctor .... that gets logged.
I have a break point in the tick event of the timer as well as an eventlog,
neither an event gets logged neither the debugger breaks at the breakpoint.
 
I event tried using System.Timers.Timer
When I debug I dont hit the break point inside my Timer_Elapsed
delegate.
What am I doing wrong
 
Back
Top