Hi,
I’m getting the exception below after loading an ECW image on version 9.0.245.0 and 9.0.0.0 (we are trying to migrate from v6.0.0.0). It is happening on our application and also in your “How Do I” - C# Samples (WPF Desktop) under Samples --> Satellite Image --> Load an ECW Image.I would greatly appreciate your help with this issue.
Thanks in advance,
Fernando
The Exception:
-------------------------------------------
An unhandled exception of type ‘System.Runtime.InteropServices.ExternalException’ occurred in WpfDesktopEdition.dll
Additional information: A generic error occurred in GDI+.
Stack Trace
----------------------------------
at ThinkGeo.MapSuite.WpfDesktopEdition.Tile.<>c__DisplayClass6.<DrawException>b__4()
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at WpfApplication1.App.Main() in \Documents\ThinkGeo\Map Suite 9.0\Code Samples\Map Suite Wpf Desktop Edition How Do I Samples_WPF Desktop Edition\WpfDesktopEdition_HowDoI_CS\obj\Debug\App.g.cs:line 0
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
Exception: "A generic error occurred in GDI+" after loading ECW
Hi Fernando,
I guess this issue is caused by the different versions of the Map Suite Unmanaged Dependencies. Please download the newest version from here ap.thinkgeo.com:5001/fbsharing/l7uEkdwT
Regards,
Peter
Thanks a lot Peter, I’ll let you know how it goes when I’m able to test it.
Hi Fernando,
You’re welcome. Any questions please let us know.
Regards,
Peter
I was able to test this, it works flawlessly. Thanks a lot for the help!
Hi Fernando,
You’re welcome. Very glad to hear it works.
Thanks,
Peter