Hi,
Mapsuite10 - Winforms, Getting this exception after some time of execution. Couldn’t find any particular reason or way to suppress. I’ve a small map with Inmemoryfeaturelayer autorefreshing @500ms. Zoomlevel 21/ 22 (Googlemaps equivalent).
Any suggestions/ pointers?
Stacktrace -
System.InvalidOperationException occurred
HResult=0x80131509
Message=The Layer must be opened before you can perform this method.
Source=ThinkGeo.MapSuite
StackTrace:
at ThinkGeo.MapSuite.ValidatorHelper.CheckLayerIsOpened(Boolean isOpen)
at ThinkGeo.MapSuite.Layers.FeatureLayer.DrawCore(GeoCanvas canvas, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.Layers.Layer.ZyU=(GeoCanvas canvas, Collection
1 labelsInAllLayers)
at ThinkGeo.MapSuite.Layers.Layer.Draw(GeoCanvas canvas, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.WinForms.LayerOverlay.DrawCore(GeoCanvas canvas) at ThinkGeo.MapSuite.WinForms.Overlay.EFM=(GeoCanvas canvas) at ThinkGeo.MapSuite.WinForms.Overlay.Draw(GeoCanvas canvas) at ThinkGeo.MapSuite.WinForms.WinformsMap.xVI=(IEnumerable
1 drawingOverlays, RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.xFI=(RectangleShape drawingExtent, RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.41I=(RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.gRU=(Int32 delayInterval, RectangleShape extent)
at ThinkGeo.MapSuite.WinForms.WinformsMap.Refresh(RectangleShape extent, IEnumerable1 overlays) at ThinkGeo.MapSuite.WinForms.WinformsMap./RU=(IEnumerable
1 extentsToRefresh, IEnumerable1 overlays) at ThinkGeo.MapSuite.WinForms.WinformsMap.Tho=.Vho=() at ThinkGeo.MapSuite.WinForms.WinformsMap.Tho=.VRo=(o1M= parameter, RequestDrawingBufferTimeType bufferTimeType) at ThinkGeo.MapSuite.WinForms.WinformsMap.u1I=(Object sender, RequestedDrawingOverlayEventArgs e) at ThinkGeo.MapSuite.WinForms.Overlay.OnRequestedDrawing(RequestedDrawingOverlayEventArgs eventArgs) at ThinkGeo.MapSuite.WinForms.Overlay.bCU=(IEnumerable
1 extentsToRefresh, TimeSpan bufferTime, RequestDrawingBufferTimeType bufferTimeType)
at ThinkGeo.MapSuite.WinForms.Overlay.RequestDrawing()
at ThinkGeo.MapSuite.WinForms.Overlay.b__88_0(Object , EventArgs )
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(IntPtr 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(Form mainForm)
at TestApp.Program.Main() in D:\ThinkGeo\TestApp\TestApp\Program.cs:line 19