Quantcast
Channel: DotSpatial Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 1128

Commented Issue: Latest changes to ExtensionManager lead to InvalidOperationException [24001]

$
0
0
I tried to adapt my project to the latest version on Trunk, but activating the extension leads to a series of InvalidOperationExceptions (illegal cross thread call). I tried to wrap some of the functionality in

```
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.


Viewing all articles
Browse latest Browse all 1128

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>