Results 1 to 5 of 5

Thread: FTP program hanged !

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Posts
    22

    FTP program hanged !

    need help ...

    i got a FTP program ... which i will do a internetopen then internetconnect ...

    then i will do a ftpfindfirstfile and internetfindnextfile ... populate them in a list box ...

    but then when i want to close the program ... either using the "stop" button in the VB 6 environment ... or "x" off the program ... it will hanged vb 6 ...

    after that i create a button to perform a internetclosehandle first ... but tat did not work as well ... it hanged vb 6 as well ..

    anyone ?

    thanks

  2. #2
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: FTP program hanged !

    The best way would be to make a break point on the begining of the event that causes the hang, then step line by line through the code and see where it hangs.

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Posts
    22

    Re: FTP program hanged !

    Private Sub Command2_Click()
    Call FTPMain.CloseFTP
    Unload Me
    End Sub

    After unload me ... at end sub ... it hanged the whole VB 6 ... anyone knows wat happen ?

  4. #4
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: FTP program hanged !

    you must have left connection, object, or form open. these must be set to nothing, or unloaded before you exit your program, or you will get unpredictable results.

  5. #5
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: FTP program hanged !

    You might want to use the F8 to step into the procedures to see if there is a particular line in the Form_Unload event that is causing the hang.

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