Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.1k views
in .NET FTP by (1.9k points)
Hello,

I have a quick question about asynchronous uploads. If I close my main form or application what the impact will be on the upload process running in the background in a separate thread? Will they be aborted or left to finish. In other words, what is the best way of proper housekeeping before shutting down my application.

Also, what do I need to do to stop all running thread. My aim is to upload a folder contents to more that 100 remote FTP servers in the same time.

Thanks

3 Answers

0 votes
by (162k points)
You certainly should ensure that your transfers are complete or aborted when you close the form. ExFTPConnection.CancelTransfer() will do this.

Alternatively with 100 servers to upload to, are you sure you want this process to be dependent on user input?
0 votes
by (1.9k points)
Well, yeah I do want the user to be able to abort transfer as well. If the user wishes to exit the application while transfers are in progress, then there is no way other than aborting all pending transfers, right?
0 votes
by (162k points)
Yes

Categories

...