|
-
Aug 29th, 2000, 03:53 PM
#1
Thread Starter
Hyperactive Member
The Internet Transfer Protocol looks easy to use but there is one error on which I lost too much time so here I am. I am simply using it to connect to an ftp and retrieve one binary file.
For those who used the control, the 'Still Executing Last Request' error message may be familiar. A suggested solution to this was to use a loop, until not .StillExecuting, executing a DoEvents. Performing this loop after the connect command would let the user know when the connection is properly established.
Unfortunately this solution didn't work for me: results in an infinite loop even tho I am connected to the FTP site. (I know that because I tried connecting to my own ftp, and the user gets connected alright)
Thanks for any help
-
Aug 29th, 2000, 07:19 PM
#2
Thread Starter
Hyperactive Member
...wanted to bring the topic back on top. Kinda desperate here.
-
Aug 29th, 2000, 07:35 PM
#3
Member
Which Loop structure did you use?
Do Loop
Do While
Loop Until
While
etc...
-
Aug 29th, 2000, 07:38 PM
#4
Thread Starter
Hyperactive Member
While inet1.StillExecuting
DoEvents
Wend
Loops forever... The state of the internet control is always 3 (connecting).
Any idea??
-
Aug 29th, 2000, 07:49 PM
#5
Member
Where are you putting that code?
If you put it in the StateChanged event of the control then that is the problem, it will never leave the loop because the statechanged event can't change. Try using an If then statement in the statechanged event or a case select with the state messages.
-
Aug 29th, 2000, 07:58 PM
#6
Lively Member
might be time to search for source code that works
http://codeguru.earthweb.com/vb/Internet/index.shtml
has some working ftp code
-
Aug 29th, 2000, 08:00 PM
#7
Thread Starter
Hyperactive Member
Actually, like the tutorials suggested, I get a good use of the control without using the StateChanged event.
I am not using this event.
I saw people having the same problem as me... doevents solved their problem. I wonder why it's not working for me. I might try .openurl
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|