I have been experiencing many "NullRefrence Exceptions not handled"
I have narrowed it down to using labels, It does not seem to matter if I use the built in TextStyles or a custom TextStyle. The errors occur during redraws (Panning, Zoom In, and Zoom Out) . There does not seem to be a common way to duplicate and seem to occur randomly - In other words, If I perform a given zoom and once and receive an error, It may or may not occur again the next time even though I repeat the steps exactly as the first time.
Below is the ouput from the exception.
System.NullReferenceException was unhandled
Message="Object reference not set to an instance of an object."
Source="MapSuiteCore"
StackTrace:
at ThinkGeo.MapSuite.Core.PositionStyle.x5e8ba87a6e4f7872(PolygonShape xdd1257604b85b26a, String x8d11a5f0a2282818, GeoCanvas x31c084515ae9393f)
at ThinkGeo.MapSuite.Core.PositionStyle.xf2594a7578927384(MultipolygonShape x3ebe6da76843c14a, String x8d11a5f0a2282818, GeoCanvas x31c084515ae9393f)
at ThinkGeo.MapSuite.Core.PositionStyle.xa560424e1568ae1a(MultipolygonShape x3ebe6da76843c14a, String x8d11a5f0a2282818, GeoCanvas x31c084515ae9393f)
at ThinkGeo.MapSuite.Core.PositionStyle.GetLabelingCandidateCore(Feature feature, GeoCanvas canvas)
at ThinkGeo.MapSuite.Core.PositionStyle.GetLabelingCandidates(Feature feature, GeoCanvas canvas)
at ThinkGeo.MapSuite.Core.PositionStyle.xf735974b04b9e074(Feature x79fd310d5eca45f6, GeoCanvas x31c084515ae9393f, Collection`1 x00f17d7e921affcc, Collection`1 xd03d0815a07e11bc)
at ThinkGeo.MapSuite.Core.PositionStyle.DrawCore(IEnumerable`1 features, GeoCanvas canvas, Collection`1 labelsInThisLayer, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Style.Draw(IEnumerable`1 features, GeoCanvas canvas, Collection`1 labelsInThisLayer, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.ZoomLevel.DrawCore(GeoCanvas canvas, IEnumerable`1 features, Collection`1 currentLayerLabels, Collection`1 allLayerLabels)
at ThinkGeo.MapSuite.Core.ZoomLevel.Draw(GeoCanvas canvas, IEnumerable`1 features, Collection`1 currentLayerLabels, Collection`1 allLayerLabels)
at ThinkGeo.MapSuite.Core.FeatureLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.xa6cb874f7090c07f(GeoCanvas x31c084515ae9393f)
at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.xf0380b1a0bc40ca6.StartDraw()
at ThinkGeo.MapSuite.DesktopEdition.x601a5561df898600.StartDraw(Int32 tileWidth, Int32 tileHeight, RectangleShape tileExtent, Collection`1 overlays)
at ThinkGeo.MapSuite.DesktopEdition.x601a5561df898600.DrawAddedExtents(IEnumerable`1 addedExtents, Collection`1 overlays)
at ThinkGeo.MapSuite.DesktopEdition.x65fdca92d79c01f5.Refresh(x177b8d80e88ce3a2 tempRedrawMode)
at ThinkGeo.MapSuite.DesktopEdition.x65fdca92d79c01f5.DrawNewImage(Int32 delayInterval)
at ThinkGeo.MapSuite.DesktopEdition.x65fdca92d79c01f5.delayDrawingTimer_Tick(Object sender, EventArgs e)
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at KTrac3.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException: