I get this exception when running in debug mode on the Application.Run(form) call and so can't debug my app. It appears to occur after the Load method whenever I have a layer. The inner exception is
"The GeoCanvas is currently not drawing. Please call the BeginDraw method before calling this method."
and the stack trace for the inner exception is
" at ThinkGeo.MapSuite.Core.x6d719af406ea4c2c.xbc32d22242378f5c(Boolean x1c27a8ea53684488)\r\n at ThinkGeo.MapSuite.Core.GeoCanvas.get_CurrentWorldExtent()\r\n at ThinkGeo.MapSuite.Core.GeoCanvas.x7f99ede452741dd6(String x8065f80416683c86)\r\n at ThinkGeo.MapSuite.Core.GeoCanvas.x90a7e4e96ee35988()\r\n at ThinkGeo.MapSuite.Core.GeoCanvas.EndDrawing()\r\n at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfbd15a0e9d15f4e2(Graphics x783a718028818269, RectangleShape xb35a33b423b17f65)\r\n at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xf12dc5c7e687c240(Boolean x991dc8ddc7528b44, RectangleShape x178b193eec228e6e)\r\n at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xf12dc5c7e687c240(RectangleShape x178b193eec228e6e, Overlay x99251f66cdabc2ad, Bitmap x63b496b10c5882ad)"
I'm not sure when this started occurring as I don't see the exception unless I'm debugging. Any ideas where this is coming from or how I can work around it? I can't debug at the moment since this throws me out of the code.
Thanks