Link to home
Start Free TrialLog in
Avatar of lee88
lee88Flag for United States of America

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?
Avatar of Ark
Ark
Flag of Russian Federation image

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!
Avatar of lee88

ASKER

Ark: I compiled, but no change. I will try SetTimer API.
ASKER CERTIFIED SOLUTION
Avatar of Ark
Ark
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of lee88

ASKER

excellent. Thanks.
Thanks for points, glad I could help you.