I just moved to the 14.3.0 build and am getting an exception that I am having a hard time figuring out what is causing it:
Message “Object reference not set to an instance of an object.” string
Source “ThinkGeo.UI.Wpf” string
StackTrace " at ThinkGeo.UI.Wpf.Overlay.O0Q=(Exception e, String memberName)\r\n at ThinkGeo.UI.Wpf.Overlay.Transform(RectangleShape targetExtent)\r\n at ThinkGeo.UI.Wpf.MapViewBase.lUM=(IEnumerable`1 overlays, RectangleShape targetExtent)\r\n at ThinkGeo.UI.Wpf.MapViewBase.kEM=(Object sender, SizeChangedEventArgs e)\r\n at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)\r\n at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)\r\n at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)\r\n at System.Windows.FrameworkElement.OnRenderSizeChanged(SizeChangedInfo sizeInfo)\r\n at System.Windows.ContextLayoutManager.fireSizeChangedEvents()\r\n at System.Windows.ContextLayoutManager.UpdateLayout()\r\n at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)\r\n at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()\r\n at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)\r\n at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)\r\n at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)\r\n at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)" string
-
TargetSite {Void O0Q=(System.Exception, System.String)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}
I am loading a project from serialization. We have templated visualizations that are laid out in a grid based on what the user has loaded. Because of the complexity of the map, I am not able to accomplish it all by data binding and there are some operations on the MapView and overlays. I did not see this exception in previous versions (not sure which 14.2 version I was using before this).
It looks a little like:
but there is a MapView already inside a grid. The MapLoaded event handler has already processed. The exception doesn’t seem to be in my initialization code but afterwards.
Any help would be appreciated.