Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Internet Transfer Control Error 35764

Status
Not open for further replies.

ecannizzo

Programmer
Sep 19, 2000
213
US
Still Executing Last Request.

I get this error even after I use the Cancel method to stop all executions. I put a loop in to see when it stops executing, but it doesn't.

Can anyone help?

Thanks!
Erica
 
put a test b4 u do next loop ..

if not inet.stillExecuting then

...
/ola
 
I mean that it never stops executing so it will never move out of the loop. It seems to execute forever...

Erica
 
You may need to yeild control so that other messages may be processed. I would suggest that your Still Executing loop look something like the following:

Do While inetFTPControl.StillExecuting
DoEvents
Loop

You should also have a StateChanged event handler which would be something like the following:

Private Sub inetFTPControl_StateChanged(ByVal rInt_FTPState As Integer)

Dim lStr_ErrorMsg As String

Select Case rInt_FTPState
Case icError
lStr_ErrorMsg = "Code: " & inetFTPControl.ResponseCode & " : " & _
inetFTPControl.ResponseInfo
MsgBox "FTP Error for Command: " & fStr_FTPCommand & vbCrLf & vbCrLf & lStr_ErrorMsg
inetFTPControl.Cancel
fBol_FTPError = True

Case icResponseCompleted
<Handle the completion>

Case icNone
Case icResolvingHost
Case icHostResolved
Case icConnecting
Case icConnected
Case icRequesting
Case icRequestSent
Case icReceivingResponse
Case icResponseReceived
Case icDisconnecting
Case icDisconnected
End Select

End Sub Good Luck
--------------
As a circle of light increases so does the circumference of darkness around it. - Albert Einstein
 
Hi,
Thanks for your answer.
I tried :
&quot;[...] inetFTPControl.StillExecuting [...]&quot;

The problem is that I want to open an URL with the POST method. For that, I think the only way is :
inetHTTPControl.Execute
But when I do that, nothing happens and the request seems to keep executing for ever. In fact, the URL I call is on a server with 2 IP adresses (and 2 networks devices). When I try to Execute the URL on the local one, it works, but when I try to call it on the world wide one, it fails (whereas OpenURL command, that's to say GET method, works in both cases !)

Any idea ?
 
The problem seems to come from the firewall (or the proxy) that does not forward the corresponding requests...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top