Click here to Skip to main content
15,900,907 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using backgroundworker along with progressbar. Every thing is working fine. All events are also ok. But when I finish with application run in debg mode and rerun same in debug mode with no time interval or with few second only, I get a message...

"This BackgroundWorker is currently busy and cannot run multiple tasks concurrently."

And if I wait for one to two minuites and run (wtih this intervel many times) no error or warning is displayed. And mistake I am doing or need to add some thing more to the code to overcome this. Please guide me.

Thanks in advance, God bless you.
Per Söderlund 31-Aug-10 6:03am    
I dont't get it, do you close your application and rerun it or do you start up the backgroundworker
without closing your application?
zaki_8279025 31-Aug-10 6:21am    
I execute the application and exit it and again I start it the second time immidiately and face the explained problem

1 solution

It sounds like a bug in the IDE, it must keep your process running. Have your code kill the thread when it closes, and it should go away. You need to do this anyhow, unless you close your application by calling Application.Close, or whatever it is that closes all threads.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900