There are actually three of them. The least reliable is
the Windows one, which I don't use.
I'm using the Timers one, which works just fine, and is
more accurate and reliable than the Windows one.
There is also the Threading one, which is more lightweight
and has fewer features, and may be even more reliable.
RayO
"Rutger" <ru********@hotmail.com> wrote in message
news:41***********************@news.xs4all.nl...
Pedro Gonçalves wrote:
Hi Caulker,
It seams to be a bug in Timer. Just see my post 'Bug in timers.timer ?'.
Pedro Gonçalves
"caulker" wrote:
I have a simple Windows Service with a timer (system.timer).
The service seems to run just fine when I have the Timer = 1 minute, but
when I set the Timer = 15 minutes it only fires once ... then appears to
stop.
any help is greatly appreciated...
The System.Timer is not really suitable for services somehow.
You can't count on System.Timer, use the Timer from the
System.Threading.Timer:
http://msdn.microsoft.com/library/en...classtopic.asp
There's another article somwhere on MSDN that comnpares the different
type of Timer objects. Can't find it anymore.
//Rutger