```
if (xxx.InvokeRequired)
xxx.Invoke(new MethodInvoker(() => { doSomething(); });
else
doSomething();
```
but that did not work, as not all components are controls.
Comments: ** Comment from web user: shieldst **
I am looking into this problem, but it's a little bit hard to troubleshoot because I am not experiencing it myself.
As you said, the root of the problem is in the ActivateAllExtension. I made a change in that method where we start a new thread when activating the ExtensionManager plugin so that we can update a SplashScreen with progress on checking for updates.
So you say if change it so that it does not start a new thread, then it works fine for you, correct?
The extension manager does not activate any plugins that it automatically updates or checks for updates, otherwise I would say that is most likely the problem. I wonder what the difference is between our projects that causes you to get an exception. I will keep looking into this as best as I can, let me know if you have anymore insights.