HELP: "This BackgroundWorker is currently busy and cannot run mult

G

Guest

Hi,

I have a very simple routine that i Call this function ~ 50 times in a loop
to copy a directory from a src to a destination.

On the 2nd call, I get this msg: "...BacgroundWorker is currently busy..."

What are my option to resolve this issue...?

thx in advance




Me.BackgroundWorker1.RunWorkerAsync()





Private Sub BackgroundWorker1_DoWork(ByVal sender As System.Object, ByVal e
As System.ComponentModel.DoWorkEventArgs) Handles BackgroundWorker1.DoWork
Dim worker As System.ComponentModel.BackgroundWorker = CType(sender,
System.ComponentModel.BackgroundWorker)



FileIO.FileSystem.CopyDirectory(FromString, LocString,
FileIO.UIOption.AllDialogs, FileIO.UICancelOption.DoNothing)



End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top