Home All Groups Group Topic Archive Search About

windows service timer - is it ticking when it shouldn't ?

Author
20 Jan 2006 9:25 AM
m00nm0nkey
I have a windows service which is calling a routine every 5 seconds. If
certain criteria is met, it calls a function which performs certain database
operations such as calling stored procedures, etc.

The stored procedures being executed by the code take a few minutes to
execute and I have noticed that, during this execution time, the service
timer starts ticking again!

How can this be, when I am specifically not running the event as a thread?

--
welcome to the mooon !

Author
20 Jan 2006 12:22 PM
Kevin Spencer
A timer runs asynchronously. It stops when you tell it to stop, and it
starts when you tell it to start.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Who is Mighty Abbott?
A twin turret scalawag.

Show quote
"m00nm0nkey" <m00nm0n***@discussions.microsoft.com> wrote in message
news:EEF6344C-572F-436E-A1B5-A6AC2B3E6739@microsoft.com...
>I have a windows service which is calling a routine every 5 seconds. If
> certain criteria is met, it calls a function which performs certain
> database
> operations such as calling stored procedures, etc.
>
> The stored procedures being executed by the code take a few minutes to
> execute and I have noticed that, during this execution time, the service
> timer starts ticking again!
>
> How can this be, when I am specifically not running the event as a thread?
>
> --
> welcome to the mooon !

AddThis Social Bookmark Button