Hi,
when using RasterLayer I'm getting an exception. First the RasterLayer will not be drawn and panning the map will raise the exception.
On a different machine it's working fine.
What issue will cause this exception? Could it be depending on network or .net package?
System.ArgumentNullException: Value cannot be null.
Parameter name: ptr
at System.Runtime.InteropServices.Marshal.GetDelegateForFunctionPointer(IntPtr ptr, Type t)
at ohM=.kCo=.kyo=()
at ohM=.kCo=.pio=(Bitmap pyo=, Double[] qCo=, String qSo=, String qio=, Double[] qyo=)
at ohM=.kCo=.lyo=(Bitmap mCo=, RectangleShape mSo=, String mio=, String myo=, RectangleShape nCo=)
at ThinkGeo.MapSuite.Core.ManagedProj4Projection.ConvertToExternalProjectionCore(GeoImage image, RectangleShape imageExtent)
at ThinkGeo.MapSuite.Core.Projection.ConvertToExternalProjection(GeoImage image, RectangleShape imageExtent)
at ThinkGeo.MapSuite.Core.RasterSource.GetImage(RectangleShape worldExtent, Int32 canvasWidth, Int32 canvasHeight)
at ThinkGeo.MapSuite.Core.RasterLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)
at ThinkGeo.MapSuite.Core.GdiPlusRasterLayer.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.ZxQ=(GeoCanvas aBQ=)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.shM=(IEnumerable`1 VRc=, RectangleShape Vhc=)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.sBM=(RectangleShape Uxc=, RectangleShape VBc=)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.FhQ=(RectangleShape lxc=, Overlay mBc=, Int32 mRc=, Int32 mhc=, GeographyUnit mxc=)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.CxQ=(IEnumerable`1 nRc=)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.9xM=(RectangleShape jRc=)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.5RM=(InteractionArguments fxc=)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.0hM=(Object bhc=, zxU= bxc=)
at ThinkGeo.MapSuite.DesktopEdition.MouseEventAnalyzer.OnMouseEvent(zxU= e)
at ThinkGeo.MapSuite.DesktopEdition.MouseEventAnalyzer.uBQ=(Double uRQ=, Double uhQ=, Double uxQ=, Double vBQ=, MapMouseButton vRQ=)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.fBc=(Object fRc=, MouseEventArgs fhc=)
at System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
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)
Regards
Hardy