BackgroundWorker w/Mutex - URGENT
Posted on 2006-06-05
Currently Im using the BackgroundWorker class in .NET 2.0 to access an FTP class and download a file; however because of the way threading works it all crashes since it isnt waiting for my BackgroundWorker to finish and because there might be more than one BackgroundWorker attempting to use the FTP class which doesnt support that, so the solution was to use Mutex to make each new BackgroundWorker wait until the one before it finishes. That fixes the problem with multiple BackgroundWorkers, however it doesnt fix the problem where the main app isnt waiting for all the BackgroundWorkers to finish working; is it possible to use Mutex to make it wait for the BackgroundWorkers?
This is all in an effort to make the main form stop being unresponsive during FTP uploading/downloading.