-
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
-
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.
-
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 ?
-
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.
-
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.