|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
windows service timer - is it ticking when it shouldn't ?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 ! A timer runs asynchronously. It stops when you tell it to stop, and it
starts when you tell it to start. -- Show quoteHTH, Kevin Spencer Microsoft MVP ..Net Developer Who is Mighty Abbott? A twin turret scalawag. "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 ! |
|||||||||||||||||||||||