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

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
 
M

mgnlloyd

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.
 

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