WODHTTP does not always fire _DONE (wodHttpDLX)
How can I fix this?
in my _Done i have a .disconnect so it closes the connection..
but _Done doesnt always fire. Sometimes _Disconnected fires instead.
_Disconnected shows a timeout error.
Even in the _Done event I have an if statement
If ErrorCode = 0 then
'run my routine
Else
'display error
End If
Can you help me figure out why _Done doesn't always fire, and sometimes the _Disconnected does instead.
Do I need to make my parse html routine in _Disconnected instead of _Done?
Re: WODHTTP does not always fire _DONE
ihutee,
Done event isn't triggered for connection related errors. It is only triggered in cases when connection to server was successful, but some error occured at that time.
If connection was unsuccessful, Disconnect will be triggered instead.
Regards,
Damba
Re: WODHTTP does not always fire _DONE
Follow Up:
In the _Disconnected event I am trying to change proxy but I am receiving the error Cannot change host information at this time. Error.
Why cannot I change the proxy if it has already Disconnected the connection. I am quite confused why this is happening. Can you help me out here?
Re: WODHTTP does not always fire _DONE
Also, I cannot set blocking mode to True as I am arraying multiple wodhttps. This would make it so #1 would need to finish before #2 could start. Im using these simultaniously.
Please let me know ASAP!
Re: WODHTTP does not always fire _DONE
ihutee,
The error you're mentioning is only thrown in case of an active connection (State is other then Disconnected).
Can you please check the State property when this exception is thrown?
Regards,
Damba