I'm displaying three lines to show distance to a point and the East/West and North/South distances. If I'm zoomed down so that one of the distances is zero, I one of the exceptions below. There is no recovery from this one as it throws you out of the app. I am working around by not displaying the E/W N/S lines if the distance is less than 1 meter.
System.ExecutionEngineException was unhandled
Message: An unhandled exception of type 'System.ExecutionEngineException' occurred in Unknown Module.
or
System.AccessViolationException occurred
Message="Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Source="System.Drawing"
StackTrace:
at System.Drawing.SafeNativeMethods.Gdip.GdipDrawLines(HandleRef graphics, HandleRef pen, HandleRef points, Int32 count)
at System.Drawing.Graphics.DrawLines(Pen pen, PointF[] points)
at ThinkGeo.MapSuite.Core.GdiPlusGeoCanvas.DrawLineCore(IEnumerable`1 screenPoints, GeoPen linePen, DrawingLevel drawingLevel, Single xOffset, Single yOffset)
at ThinkGeo.MapSuite.Core.GeoCanvas.x031f76d2da9fbe52(Byte[] x99e09ceb3e6636a9, Int32 xedf77fd65cf83220, Single xce919ea4a4b048be, Single x4e6c8c21e101dfe6, DrawingLevel x1aab732a2c56566f, GeoPen x0860aa02a02a22f7)
at ThinkGeo.MapSuite.Core.GeoCanvas.DrawLine(Feature feature, GeoPen linePen, DrawingLevel drawingLevel, Single xOffset, Single yOffset)
at ThinkGeo.MapSuite.Core.LineStyle.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.DrawCore(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x27d0591c2adda8d9(RectangleShape xb35a33b423b17f65, Overlay x99251f66cdabc2ad, Int32 xa209325f5c895f7e, Int32 x7454a0d1965919b1, GeographyUnit xbb704b4400ce6f76)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x568a187128faa92b(IEnumerable`1 xa6f0db4f183189f1)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32 xb565f4681f05557a)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()
at GISMapping.MapSuiteControl.RefreshMap() in C:\CMS\GISMapping\MapSuiteControl.cs:line 3422