E exjey Member Licensed User Longtime User Jun 8, 2013 #1 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?
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?
E exjey Member Licensed User Longtime User Jun 8, 2013 #2 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. Last edited: Jun 9, 2013 Upvote 0
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.
Erel B4X founder Staff member Licensed User Longtime User Jun 9, 2013 #3 This is not expected. If you like to debug it then please post the FTP code. Upvote 0