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

G

Guest

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?
 
K

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top