My app uses myftp.UploadFile method to send a file to a ftp server. It succeeds, it fires UploadCompleted with Success=True and then return to some other function (nothing to do with the FTP objects).
But i can see the UploadProgress event keeps firing even if the upload is completed. I know it because i have a Log() there. I've tried to call myftp.Close or .CloseNow but it keeps firing it. Anybody?
Not absolutely sure, but i think its solved. After myftp.Initialize i enabled .PassiveMode and its ok now.
Edit: Wrong guess... My ftp is in PassiveMode but that didnt solve the problem. I was getting too other errors like "java socketexception : broken pipe". I am calling now ftp.initialize method before running .uploadfile and all works smoothly.