MapSuite Team,
I get these exceptions out of the WpfDesktopEdition all too frequently. I have added the DrawnException and DrawingException events, but continue to receive these.
The only layers that are tiled are MrSid layers so I assume that is where this is coming from.
Is there any way to determine why this exception is occurring in the first place or to at least trap the exception?
Thanks,
Dennis
CurrentDomain_UnhandledException:
Unhandled Exception–>Outer
Source=WpfDesktopEdition
TargetSite=Void DrawException(ThinkGeo.MapSuite.Core.GeoCanvas, System.Exception)
StackTrace= at ThinkGeo.MapSuite.WpfDesktopEdition.Tile.DrawException(GeoCanvas geoCanvas, Exception exception)
at ThinkGeo.MapSuite.WpfDesktopEdition.Tile.Draw(GeoCanvas geoCanvas)
at ThinkGeo.MapSuite.WpfDesktopEdition.Tile.XhY=(Object XxY=)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
Message=Object reference not set to an instance of an object.
Object reference not set to an instance of an object
Hi Dennis,
It looks LayerOverlay in WPF edition is tile-based overlay, we read your detail StackTrace information, it should be thrown when tile draw.
So we cannot make sure that’s thrown by MrSid layer.
If you can reproduce that easily, could you please comment some layers and make sure which ones caused this issue first, then we need detail code for reproduce it.
Regards,
Don
Don,
The only layers in my application that are tiled are 16 MrSid Layers contained within their own single LayerOverlay.
This is not any one layer that is causing this issue. Again, it is caused because of the number of layers that my application must support and all the activity that goes on in the MapSuite Threads to redraw these layers.
This is not necessarily a coding issue, but rather a load and threading issue.
I have a few other common exceptions that occur with the MapSuite dll’s which I also believe are caused by something that is going on in the background with the threads.
This exception does happen often enough that I must get it fixed. It’s not a matter of sending you a few lines of my code or even a thousand lines because I firmly feel this is a background threading issue and will only show when there is a load on the system.
I can actually recreate this if I try as it happens most often when zooming in/out.
What I will do is run with the MrSid layers InVisible and see if this exception occurs.
Any thoughts you might have?
Regards,
Dennis
Hi Dennis,
We can’t reproduce this issue on our end, attached file is our test sample, would you please modify it and see if you can recreate the issue? Also would you mind provide your test .sid files to us? If these files are pretty large, please send to sales@thinkgeo.com.
Regards,
Kevin
post12539.zip (9.24 KB)