Operation invalid in this state - WeOnlyDo Discussion board

Operation invalid in this state (General questions)

by Saurabh Gupta, Wednesday, April 05, 2006, 22:24 (6806 days ago)

I am using HttpDlx to download multiple files in blocking mode. It works fine as long as there is no timeout. After a timeout has occured subsequent calls to .Get give the error 20010: Operation invalid in this state . What could be the reason?

Re:

by wodSupport, Wednesday, April 05, 2006, 22:52 (6806 days ago) @ Saurabh Gupta

I am using HttpDlx to download multiple files in blocking mode. It works fine as long as there is no timeout. After a timeout has occured subsequent calls to .Get give the error 20010: Operation invalid in this state . What could be the reason?

Reason is obvious - when timeout expired, you were no longer connected, so .Get method reported the error. However, unless you did something specially (nothing comes to my mind....), .Get should auto reconnect and fetch the resource. Why this didn't happen - have no idea.

How can we duplicate this? Can you send us your code to try this out?

Kreso

Test source code

by Saurabh Gupta, Thursday, April 06, 2006, 09:21 (6806 days ago) @ wodSupport

Email sent.