Archived Forum Post

Index of archived forum posts

Question:

Hundreds of files via MPutFiles causes VB.net app to become unresponsive

Sep 15 '14 at 17:34

Can I use the MPutFiles command available from the FTP2 library to upload hundreds of files? The command works incredibly well (updating progress bar, etc.) when uploading 10-20 files but when uploading hundreds of files, the VB.net application becomes unresponsive - which is confusing to the user. Interesting enough, however, the app is actually continuing the upload process. How can I keep the application "awake" so the user doesn't assume it crashed?

I have also noticed that in the debug environment the application runs perfectly (without appearing unresponsive).

Thanks in advance for your guidance and expertise. I am brand new to this so I apologize. I did search the forum but couldn't find any topic covering this particular issue.


Answer

I think I may have found the issue. The example I used when writing the code used a value of 1000 for the ftp.msSleep call. When I increased this to 30000 (yes, that seems excessive to me) - the program does not get hung up or appear to be "Not Responding".

I just uploaded over 500 files (about 180KB each) and the program worked perfectly. Thank you Chilkat for your amazing work... what a time saver!