ThinkGeo.com    |     Documentation    |     Premium Support

Error on GeoCanvas in a WIndows 10 Virtual machine

We have an application that use MapSuite Desktop Winforms Edition 10.1.0. Recently, we tried to move this application to a laptop computer running a Virtual machine with Windows 10 operating system. The laptop computer is a MAC machine. The initial MapSuite window displays with a world map shown but as soon as we attempt to move or zoom the map window, the application crashes and produces an error message with the following stack trace:

“See the end of this message for details on invoking just-i-time (JIT) debuggig instead of this dialog box.”

****Exception Text

System.InvalidOperation Exception: The GeoCanvis is currently not drawing . Please call the BeginDraw method before calling this method.

at ThinkGeo.Mapsuite.ValidatorHelper. CheckGeoCanvisinDrawing(Bollean isDrawing)

at ThinkGeo.MapSuite.Drawing.GeoCanvas.DrawText(String text, GeoFont font, GeoBrush fillBrush, lEnumerable’1 textPathinScreen, DrawingLevel drawingLevel)

at ThinkGeo.MapSuite.Drawing.GeoCanvas.PyU=(String waterMarkedString)

at ThinkGeo.MapSuite.Drawing.GeoCanvas.PiU()

at ThinkGeo.MapSuite.WinForms.WinformsMap.xVl=(Enumerable’1 drawingOverlays, RectangleShape extent)

at ThinkGeo.MapSuite.WinForms.WinformsMap.xFl=(RectangleShape drawingExtent, RectangleShape extent)

at ThinkGeo.MapSuite.WinForms.WinformsMap.41l=(RectangleShape extent)

at ThinkGeo.MapSuite.WinForms.WinformsMap.gRU=(Int32 delayInterval, RectangleShape extent)

at ThinkGeo.MapSuite.WinForms.WinformsMap.zFI=(Object sender, EventArgs e)

at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)

at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)

at System.Windows.Forms.Control.UpdateBounds()

at System.Windows.Forms.Control.WmWindowPosChanged(Message& m)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies ************** mscorlib

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3131.0 built by: NET472REL1LAST

CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

InterferenceAnalysisToolkit

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/InterferenceAnalysisToolkit.exe

PresentationFramework

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3110.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll

WindowsBase

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

System.Core

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

PresentationCore

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

System.Xaml

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

WindowComponentBuilders

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/WindowComponentBuilders.DLL

System.Configuration

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

PresentationFramework.Aero2

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll

PresentationFramework-SystemXml

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll

UIAutomationTypes

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll

CommsToolkit

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/CommsToolkit.EXE

RadarToolkit

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/RadarToolkit.EXE

PropagationToolkit

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/PropagationToolkit.EXE

AntennaAnalysesToolkit

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/AntennaAnalysesToolkit.EXE

IfireGui

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/IfireGui.EXE

NoiseGui

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/NoiseGui.EXE

CoverageLibrary

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/CoverageLibrary.DLL

Ground2AirPropTk

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/Ground2AirPropTk.EXE

PropagationModelParameters

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/PropagationModelParameters.DLL

ClutterModels

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/ClutterModels.DLL

Itu_R_452_16

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/Itu_R_452_16.DLL

SpreadsheetLibrary

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/SpreadsheetLibrary.DLL

System.Windows.Forms

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

UIAutomationProvider

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3110.0 built by: NET472REL1LAST_C

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationProvider/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationProvider.dll

Microsoft.Office.Interop.Excel

Assembly Version: 15.0.0.0

Win32 Version: 15.0.4569.1506

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.Excel/15.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.Excel.dll

office

Assembly Version: 15.0.0.0

Win32 Version: 15.0.4613.1000

CodeBase: file:///C:/Windows/assembly/GAC_MSIL/office/15.0.0.0__71e9bce111e9429c/office.dll

Microsoft.CSharp

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.CSharp/v4.0_4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll

System.Dynamic

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll

Anonymously Hosted DynamicMethods Assembly

Assembly Version: 0.0.0.0

Win32 Version: 4.7.3131.0 built by: NET472REL1LAST

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/mscorlib/v4.0_4.0.0.0__b77a5c561934e089/mscorlib.dll

MapAccess

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/MapAccess.DLL

PropagationAnalysisDrivers

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/PropagationAnalysisDrivers.DLL

SMMapProvider

Assembly Version: 3.5.0.1

Win32 Version: 3.5.0.1

CodeBase: file:///C:/IAT/Release/SMMapProvider.DLL

log4net

Assembly Version: 1.2.15.0

Win32 Version: 1.2.15.0

CodeBase: file:///C:/IAT/Release/log4net.DLL

MapControl2d.GUI

Assembly Version: 3.5.0.1

Win32 Version: 3.5.0.1

CodeBase: file:///C:/IAT/Release/MapControl2d.GUI.EXE

SMESMapProvider

Assembly Version: 3.5.0.1

Win32 Version: 3.5.0.1

CodeBase: file:///C:/IAT/Release/SMESMapProvider.DLL

LatLonLibrary

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/LatLonLibrary.DLL

EnvironmentalPropagationParameters

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/EnvironmentalPropagationParameters.DLL

TerrainProfile

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/TerrainProfile.DLL

PropagationModelWrappers

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/PropagationModelWrappers.DLL

System.Dynamic.DynamicAssembly

Assembly Version: 0.0.0.0

Win32 Version: 4.7.3056.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Dynamic/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Dynamic.dll

RCZLibrary

Assembly Version: 1.0.0.0

Win32 Version: 1.0.0.0

CodeBase: file:///C:/IAT/Release/RCZLibrary.DLL

NetGeoLib

Assembly Version: 3.0.1.30

Win32 Version: 3.0.1.30

CodeBase: file:///C:/IAT/Release/NetGeoLib.DLL

NETGeographic

Assembly Version: 1.33.5185.36217

Win32 Version: 

CodeBase: file:///C:/IAT/Release/NETGeographic.DLL

EllipticalGeometry

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/EllipticalGeometry.DLL

IIMGeoDataBridgeCSharp

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/IIMGeoDataBridgeCSharp.DLL

NTIAGeoLib

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/NTIAGeoLib.DLL

SMAlgorithmLibrary

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/SMAlgorithmLibrary.DLL

SMTerrainProvider

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/SMTerrainProvider.DLL

TerrainServiceBridge

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/TerrainServiceBridge.DLL

DTEDLibrary

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/DTEDLibrary.DLL

DTEDTypes

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/DTEDTypes.DLL

DTEDFileLibrary

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/DTEDFileLibrary.DLL

SMAlgorithmModel

Assembly Version: 3.5.0.1

Win32 Version: 3.5.0.1

CodeBase: file:///C:/IAT/Release/SMAlgorithmModel.DLL

ITMDLL

Assembly Version: 1.0.6558.23762

Win32 Version: 

CodeBase: file:///C:/IAT/Release/ITMDLL.DLL

System.Drawing

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

CommonCodeLibrary

Assembly Version: 3.5.0.1

Win32 Version: 3.5.0.1

CodeBase: file:///C:/IAT/Release/CommonCodeLibrary.DLL

WeifenLuo.WinFormsUI.Docking

Assembly Version: 2.9.0.0

Win32 Version: 2.9.0.0

CodeBase: file:///C:/IAT/Release/WeifenLuo.WinFormsUI.Docking.DLL

MapControl2d

Assembly Version: 3.5.0.1

Win32 Version: 3.5.0.1

CodeBase: file:///C:/IAT/Release/MapControl2d.DLL

ThinkGeo.MapSuite

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.DLL

ThinkGeo.MapSuite.Layers.MapShape

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.MapShape.DLL

System.ComponentModel.Composition

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.Composition/v4.0_4.0.0.0__b77a5c561934e089/System.ComponentModel.Composition.dll

System.Runtime.Serialization

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3131.0 built by: NET472REL1LAST

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll

NetTopologySuite

Assembly Version: 1.14.0.0

Win32 Version: 1.14

CodeBase: file:///C:/IAT/Release/NetTopologySuite.DLL

GeoAPI

Assembly Version: 1.7.4.0

Win32 Version: 1.7.4.0

CodeBase: file:///C:/IAT/Release/GeoAPI.DLL

ThinkGeo.MapSuite.WinForms

Assembly Version: 10.0.0.0

Win32 Version: 10.1.1

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.WinForms.DLL

Accessibility

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

Microsoft.GeneratedCode

Assembly Version: 1.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

Microsoft.GeneratedCode

Assembly Version: 1.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

System.Data

Assembly Version: 4.0.0.0

Win32 Version: 4.7.3120.0 built by: NET472REL1LAST

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

Microsoft.GeneratedCode

Assembly Version: 1.0.0.0

Win32 Version: 4.7.3056.0 built by: NET472REL1

CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

DTEDPathProfile

Assembly Version: 3.0.3.1

Win32 Version: 3.0.3.1

CodeBase: file:///C:/IAT/Release/DTEDPathProfile.DLL

ZedGraph

Assembly Version: 5.1.5.28844

Win32 Version: 5.1.5.28844

CodeBase: file:///C:/IAT/Release/ZedGraph.DLL

SmartSolutions.Controls

Assembly Version: 3.5.0.1

Win32 Version: 3.5.0.1

CodeBase: file:///C:/IAT/Release/SmartSolutions.Controls.DLL

ThinkGeo.MapSuite.Layers.GoogleMaps

Assembly Version: 10.0.0.0

Win32 Version: 10.1.1

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.GoogleMaps.DLL

ThinkGeo.MapSuite.Layers.BingMaps

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.BingMaps.DLL

ThinkGeo.MapSuite.Layers.ShapeFile

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.ShapeFile.DLL

OsmWorldMapKitLayer

Assembly Version: 9.0.0.0

Win32 Version: 9.0.0.0

CodeBase: file:///C:/IAT/Release/OsmWorldMapKitLayer.DLL

ThinkGeo.MapSuite.Layers.Adornments

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.Adornments.DLL

ThinkGeo.MapSuite.Styles.Value

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Styles.Value.DLL

ThinkGeo.MapSuite.Styles.ClassBreak

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Styles.ClassBreak.DLL

ThinkGeo.MapSuite.Styles.IconValue

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Styles.IconValue.DLL

ThinkGeo.MapSuite.Layers.Graticule

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.Graticule.DLL

ThinkGeo.MapSuite.Layers.Background

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.Background.DLL

ThinkGeo.MapSuite.Layers.Grids

Assembly Version: 10.0.0.0

Win32 Version: 10.1.0

CodeBase: file:///C:/IAT/Release/ThinkGeo.MapSuite.Layers.Grids.DLL

************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section.

The application must also be compiled with debugging enabled.

For example:

<system.windows.forms jitDebugging="true" /> </configuration>

When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.


Can anyone tell me what might be missing in this Windows 10 environment that would produce this exception?

Any help you can provide would be greatly appreciated.

Thanks
Richard

Hi Richard,

We don’t have experience about run our map in the windows 10 VM of Mac, but I think it should be the environment problem. We will do some research and see whether we can find some information.

And in fact you can directly use our map in Mac, only some windows special features are not supported, the map should works well.

Regards,

Ethan

Ethan,

Thanks for the quick response.

I am working on a theory it might be an issue with DirectX. I don’t believe the Windows 10 on MAC had the Microsoft.WindowsAPICodePack.Directx.dll in the environment and I am not sure if that needs to be in the Windows System32 or the application folder. Also I am not sure if this has dependencies in the operating system.

When you say, that this will run on MAC directly, do we need to rebuild with a different MapSuite package other than the Winforms Standard in the MapSuite Winforms Desktop Edition?

Richard

Hi Richard,

I don’t have more thinking about the Win10 VM in mac, but I can give you some message about run on Mac directly.

If you want to develop it, please install Visual Studio for Mac and then install the packages there, I am not sure whether the NuGet works the same in Windows and Mac, but delete the packages folder and build project again should be fast.

If you only need run the exe there, please make sure the license file is at the same folder of your exe file, then use MONO command line to run it.

Wish that’s helpful.

Regards,

Ethan