SMUsamaShah
SMUsamaShah

Reputation: 7890

Why BackgroundWorker started itself?

In my application backgroundWorker starts when I start the application. I can't see anything before backgroundworker_dowork in call stack other than [external code].

Why backgroundworker is starting itself and how to avoid that?

Upvotes: 0

Views: 102

Answers (1)

Jay Riggs
Jay Riggs

Reputation: 53593

BackgroundWorkers are started by calling the worker's RunWorkerAsync method. Find where this method is being called, breakpoint it and see what's what.

Upvotes: 4

Related Questions