.net - Backgroundworker runworkercompleted not firing -


I have a very strange problem with the background worker. The code is very complex, so try and explain this problem, Just want to know that anyone has seen something like that. We have a UI thread that spins the background thread. The background thread does some printing on the PDF printer in the background when it is finished then it exits the thread function and so I hope the run-up to increase the incidence

This form is not form 2.0.

Every time we do a new installation of the product and fire our app then the run-off work is not ending even if we kill our app from Task Manager and Let's start it works like a charm (undoubtedly we are a little worried that users are the first thing to see with our product :-))

Logging has confirmed that in each case i ) Background Out Rkr thread function Clear Exit Ii) thread func is not raised an exception

The two machine reproable 100% on a win7 and Vista SP1. Its really, I do not understand what to do with it for the first time

Any suggestions are welcome

I was facing this problem when I realized that I was disposing of my backgroundwork object and could separate the event handler shortly before completing the ASCII execution. Look in your code and make sure that you are not around your backwash with the use block or specially handling or otherwise disconnecting your event handlers.


Comments