c# - Why does the BackgroundWorker's ProgressChanged event work without calling RunWorkerAsync? -


i have question regarding backgroundworker. can call progresschanged event without having started thread runworkerasync.

i don't understand why works. how can notify original thread if new thread didn't start yet?

this seems work regardless, since updates gui without problem, wasn't before implemented backgroundworker.

calling reportprogresschanged() raise progresschanged event regardless of thread called from.

inside inplementation of reportprogresschanged() mechanism raises event on ui thread if wasn't called ui thread. if reportprogresschanged() is being called ui thread, raises event without needing marshalling.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -