Weird issue with BackgroundWorker
Posted on 2011-09-22
I am using a background worker in a winforms app which I have done several times. However this time I am getting some weird results. For one, when I run the function that uses the bgw, the UI for some reason goes unresponsive...something I have never seen in past usage.
Also, when I am trying to debug, I set a breakpoint on the DoWork event. This gets hit normally, but my mouse cursor goes to a busy hourglass and just sits for about 4-5 seconds, then when I try to step to the next line, it is like I hit F5(run) and no more break points get hit...I also get no data returned and the app just acts like it is doing something, but it never returns. The completed event never gets hit and the progress changed event doesn't get hit.
any thought...? I have looked at old code where I have used this before and I am doing the exact same thing I always have...I have never seen this...