Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.2k views
in .NET FTP by (360 points)
I am using the FTPRemotelist and allowing the transfer of files via context menu or drag and drop.
All works fine until I transfer multiple files. It will transfer the first file fine and then hangs the app - I have to kill the process.

I have code in the SecureFTPConnection1_Downloaded event that logs the file transfered and then deletes the file after.
Is there something I need to do inorder to keep the following files from downloading until after my download event?
or is there something else I should be looking at?

1 Answer

0 votes
by (51.6k points)
You can't safely start another FTP operation synchronously inside an event-handler, but calling an asynchronous method should work. Try using BeginDeleteFile.

Regards

Categories

...