system.timers.timer: how to check if previous procedure is complete?

  • Thread starter Thread starter mgnlloyd
  • Start date Start date
M

mgnlloyd

i am using system.timers.timer to perform a webrequest and populate a
datatable with the returned values.

Occasionaly if my connection becomes slow it takes longer for the
webresponse and dataprocessing than the interval of the timer.

the program stops responding and then in spurts will hammer the
website with the webrequests in the queue.

How can check in the timer procedure whether there exists in the
threadpool a instance of itself currecntly running? ... if you see
what i mean. thankyou
 
I think the normal approach for this situation is to disable the timer at the
beginning of the event procedure, and re-enable it at the end. That way notimer
events pile up behind it.

thankyou stevey G, ill give that a go.
 
Back
Top