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: FObermaier **

Here you go:

System.InvalidOperationException ist aufgetreten.
HResult=-2146233079
Message=Ungültiger threadübergreifender Vorgang: Der Zugriff auf das Steuerelement Default Group erfolgte von einem anderen Thread als dem Thread, für den es erstellt wurde.
Source=System.Windows.Forms
StackTrace:
bei System.Windows.Forms.Control.get_Handle()
InnerException:


The call tree:
System.Windows.Forms.dll!System.Windows.Forms.Control.Handle.get() + 0xd5 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.SetBoundsCore(int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified) + 0x13e Bytes
System.Windows.Forms.dll!System.Windows.Forms.ToolStrip.SetBoundsCore(int x, int y, int width, int height, System.Windows.Forms.BoundsSpecified specified) + 0x85 Bytes
System.Windows.Forms.dll!System.Windows.Forms.ToolStrip.System.Windows.Forms.Layout.IArrangedElement.SetBounds(System.Drawing.Rectangle bounds, System.Windows.Forms.BoundsSpecified specified) + 0x1b Bytes
System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.xLayoutDockedControl(System.Windows.Forms.Layout.IArrangedElement element, System.Drawing.Rectangle newElementBounds, bool measureOnly, ref System.Drawing.Size preferredSize, ref System.Drawing.Rectangle remainingBounds) + 0x35 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.LayoutDockedControls(System.Windows.Forms.Layout.IArrangedElement container, bool measureOnly) + 0x1d4 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.xLayout(System.Windows.Forms.Layout.IArrangedElement container, bool measureOnly, out System.Drawing.Size preferredSize) + 0x122 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Layout.DefaultLayout.LayoutCore(System.Windows.Forms.Layout.IArrangedElement container, System.Windows.Forms.LayoutEventArgs args) + 0x19 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Layout.LayoutEngine.Layout(object container, System.Windows.Forms.LayoutEventArgs layoutEventArgs) + 0x1c Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.OnLayout(System.Windows.Forms.LayoutEventArgs levent) + 0x74 Bytes
System.Windows.Forms.dll!System.Windows.Forms.ScrollableControl.OnLayout(System.Windows.Forms.LayoutEventArgs levent) + 0x4e Bytes
System.Windows.Forms.dll!System.Windows.Forms.Form.OnLayout(System.Windows.Forms.LayoutEventArgs levent) + 0x3f Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.LayoutEventArgs args) + 0xb9 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.System.Windows.Forms.Layout.IArrangedElement.PerformLayout(System.Windows.Forms.Layout.IArrangedElement affectedElement, string affectedProperty) + 0x30 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.PerformLayout(System.Windows.Forms.LayoutEventArgs args) + 0x160 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.PerformLayout() + 0x14 Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ResumeLayout(bool performLayout) + 0x16e Bytes
System.Windows.Forms.dll!System.Windows.Forms.Control.ResumeLayout() + 0xa Bytes
System.Windows.Forms.dll!System.Windows.Forms.ToolStripItemCollection.Clear() + 0xea Bytes
> DotSpatial.Controls.dll!DotSpatial.Controls.Header.MenuBarHeaderControl.RefreshRootItemOrder() Zeile 342 + 0x25 Bytes C#
DotSpatial.Controls.dll!DotSpatial.Controls.Header.MenuBarHeaderControl.Add(DotSpatial.Controls.Header.RootItem item) Zeile 97 + 0x8 Bytes C#
[Lightweightfunktion]
System.Core.dll!System.Dynamic.UpdateDelegates.UpdateAndExecuteVoid2<DotSpatial.Controls.Header.HeaderControl,object>(System.Runtime.CompilerServices.CallSite site, DotSpatial.Controls.Header.HeaderControl arg0, object arg1) + 0x1c3 Bytes
[Lightweightfunktion]
DotSpatial.Controls.dll!DotSpatial.Controls.Header.HeaderControl.Add(DotSpatial.Controls.Header.HeaderItem item) Zeile 85 + 0x12d Bytes C#
DOTSPATIAL.PLUGINS.HELP.dll!DotSpatial.Plugins.Help.HelpPlugin.Activate() Zeile 16 + 0x45 Bytes C#
DotSpatial.Extensions.dll!DotSpatial.Extensions.IExtensionExtensionMethods.TryActivate(DotSpatial.Extensions.IExtension extension) Zeile 27 + 0x9 Bytes C#
DotSpatial.Controls.dll!DotSpatial.Controls.AppManager.Activate(DotSpatial.Extensions.IExtension extension) Zeile 562 + 0x8 Bytes C#
DotSpatial.Controls.dll!DotSpatial.Controls.AppManager.ActivateAllExtensions() Zeile 540 + 0x8 Bytes C#
DotSpatial.Controls.dll!DotSpatial.Controls.AppManager.LoadExtensions() Zeile 370 + 0x8 Bytes C#
DemoMap.exe!DemoMap.MainForm.MainForm() Zeile 39 + 0x11 Bytes C#
DemoMap.exe!DemoMap.Program.Main() Zeile 37 + 0x15 Bytes C#
[Übergang von Systemeigen zu Verwaltet]
[Übergang von Verwaltet zu Systemeigen]
mscorlib.dll!System.AppDomain.ExecuteAssembly(string assemblyFile, System.Security.Policy.Evidence assemblySecurity, string[] args) + 0x6b Bytes
Microsoft.VisualStudio.HostingProcess.Utilities.dll!Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() + 0x27 Bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart_Context(object state) + 0x6f Bytes
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0xa7 Bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) + 0x16 Bytes
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) + 0x41 Bytes
mscorlib.dll!System.Threading.ThreadHelper.ThreadStart() + 0x44 Bytes
[Übergang von Systemeigen zu Verwaltet]


Viewing all articles
Browse latest Browse all 1128

Trending Articles



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