Hello,
From version 14.4.0-beta049 to 14.4.0-beta050 something changed in ThinkGeo which crashes my software. Problem still exists in latest beta091.
I can’t figure out what I’m doing wrong in my code.
At first the update to version beta050 completely crashed my app without throwing an exception in debug mode in Visual Studio.
I changed my startup sequence of the application and know I get an exception as you can see in the picture.
As far as I can tell it has got something to do with FeatureLayerWpfDrawingOverlay.
Strange thing is now, that after the exception occurs the application continues and seems to be working just fine. So in version beta049 no exceptions, since version beta050 the exceptions exist.
After some more research I discovered that commenting out the last row does NOT result in the exception. So when I do not add MapLabelOverlay tot the overlays collection everything is working fine.
Nowhere else in my code I add this overlay to the collection.
Any idea what might cause this exception?
Private Shared MapLabelOverlay As FeatureLayerWpfDrawingOverlay
Private Shared MapLabelLayer As InMemoryFeatureLayer
function mapView_Loaded ()
EnsureBackGroundOverlay()
Me.MapTools.Logo.Visibility = Visibility.Hidden
Me.ExtentOverlay = New MyExtentInteractiveOverlay(Me)
MapLabelOverlay.Name = "MapLabelOverlay"
MapLabelLayer.Name = "LabelLayer"
MapLabelOverlay.FeatureLayers.Add(MapLabelLayer)
Me.Overlays.Add(MapLabelOverlay) ' Add the label overlay
end function
The Stack Trace is in the picture.
Kind regards,
Guido van den Boom