Using timer object in a Windows Service app

  • Thread starter Thread starter Mr B
  • Start date Start date
M

Mr B

The service is installed, started etc, but no tick events are received. Is
this expected? Should I be using an alternative technique for regular data
processing?

Mr B
 
Mr B,

There are three separate timers offered with .NET. Which is the one
that you are using?
 
Here's a handy hint for everybody. Form based timers don't work in Services.
Doh!

I switched to a lightweight thread timer. Works just fine now.

Mr B

Nicholas Paldino said:
Mr B,

There are three separate timers offered with .NET. Which is the one
that you are using?


--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Mr B said:
The service is installed, started etc, but no tick events are received. Is
this expected? Should I be using an alternative technique for regular data
processing?

Mr B
 
Back
Top