Results 1 to 7 of 7

Thread: Internet Transfer Protocol - How, why and uh?

  1. #1

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    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
    Chris

  2. #2

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    ...wanted to bring the topic back on top. Kinda desperate here.
    Chris

  3. #3
    Member
    Join Date
    Jul 2000
    Location
    BFE in Oregon
    Posts
    33

    Which Loop structure did you use?

    Do Loop
    Do While
    Loop Until
    While

    etc...

  4. #4

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    While inet1.StillExecuting
    DoEvents
    Wend

    Loops forever... The state of the internet control is always 3 (connecting).

    Any idea??
    Chris

  5. #5
    Member
    Join Date
    Jul 2000
    Location
    BFE in Oregon
    Posts
    33
    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.

  6. #6
    Lively Member
    Join Date
    Aug 2000
    Posts
    125
    might be time to search for source code that works

    http://codeguru.earthweb.com/vb/Internet/index.shtml

    has some working ftp code

  7. #7

    Thread Starter
    Hyperactive Member Krass's Avatar
    Join Date
    Aug 2000
    Location
    Montreal
    Posts
    489
    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
    Chris

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width