BackgroundWorker problems with VSTO

Has anyone trie using the BackgroundWorker component inside of ActionPanes

I spin up two panes in a Word Doc startup. Within the first pane, I start a long running action that when completed, updates data in the second pane. The issue is that within the RunWorker_Completed event, the executing thread is staying as the background thread, not switching back to the UI thread.

UIThread:1
backgroundWorker_DoWork:5
backgroundWorker_RunWorkerCompleted
:5

When running the same code within a winform, I get the expected behavior:

UIThread:1
backgroundWorker_DoWork:5
backgroundWorker_RunWorkerCompleted
:1

Any ideas


Answer this question

BackgroundWorker problems with VSTO