Hi everyone,
I got a strange bug with my program while trying to get the file list of an ftp directory. Just look at the code first:
I go to the image directory, no problem with this operation. Than I execute a DIR command on the directory to get the file list, here a strange thing happen.
When I execute the code with no break point, or with the compiled exe, it goes to an infinite loop.
But if i use the vb debugger and just press "stop" and "go" while in the loop, it exits the loop and all work fine.
Does someone have an idea of what is happening there ? Because it looks very strange to me.
Thank you
I got a strange bug with my program while trying to get the file list of an ftp directory. Just look at the code first:
Code:
FTP.Execute , "CD /images/"
Do
DoEvents
Sleep 150
Loop Until Not FTP.StillExecuting
FTP.Execute , "DIR"
Do
DoEvents
Sleep 150
Loop Until Not FTP.StillExecuting
I go to the image directory, no problem with this operation. Than I execute a DIR command on the directory to get the file list, here a strange thing happen.
When I execute the code with no break point, or with the compiled exe, it goes to an infinite loop.
But if i use the vb debugger and just press "stop" and "go" while in the loop, it exits the loop and all work fine.
Does someone have an idea of what is happening there ? Because it looks very strange to me.
Thank you