lee88
asked on
Timer does not fire during Send operation?
I have a timer that fires every 1/10 of a second and updates a label on a form. It works fine, but when the following code is executed:
Dim oHTTP As New MSXML2.XMLHTTP
...
oHTTP.send (DataToSend)
my VB6 program "looses program control" to the "send" operation for about 15 seconds. In other words, my timer event does not fire during the "send" operation. Is there any way to cause my timer to continue to fire at its interval during the "send" operation?
Dim oHTTP As New MSXML2.XMLHTTP
...
oHTTP.send (DataToSend)
my VB6 program "looses program control" to the "send" operation for about 15 seconds. In other words, my timer event does not fire during the "send" operation. Is there any way to cause my timer to continue to fire at its interval during the "send" operation?
This is IDE behavior. Just compile your app and everything will be OK. Or use SetTimer API
Hi lee88,
You could also use DoEvents with the CCRP timer:
http://ccrp.mvps.org/index.html?controls/ccrptimer6.htm
Cheers!
You could also use DoEvents with the CCRP timer:
http://ccrp.mvps.org/index.html?controls/ccrptimer6.htm
Cheers!
ASKER
Ark: I compiled, but no change. I will try SetTimer API.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
excellent. Thanks.
Thanks for points, glad I could help you.