ThinkGeo.com    |     Documentation    |     Premium Support

New exception with 3.0.415

Hello,


Please help !!!, this was working fine with 3.0.395


L'exception System.Reflection.TargetInvocationException n'a pas été gérée

  Message="Une exception a été levée par la cible d'un appel."

  Source="mscorlib"

  StackTrace:

       à System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       à System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

       à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

       à System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

       à System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)

       à ThinkGeo.MapSuite.Core.xbde0958acd0fe179.GetScaledBitmap(Int32 centerX, Int32 centerY, Int32 width, Int32 height, Int32 targetWidth, Int32 targetHeight)

       à ThinkGeo.MapSuite.Core.EcwRasterSource.GetImageCore(RectangleShape worldExtent, Int32 canvasWidth, Int32 canvasHeight)

       à ThinkGeo.MapSuite.Core.RasterSource.GetImage(RectangleShape worldExtent, Int32 canvasWidth, Int32 canvasHeight)

       à ThinkGeo.MapSuite.Core.RasterLayer.DrawCore(GeoCanvas canvas, Collection`1 labelsInAllLayers)

       à ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection`1 labelsInAllLayers)

       à ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas)

       à ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x03e3d48bcfe7bb6c(IEnumerable`1 xa6f0db4f183189f1)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xff5b27c00f9678c2(RectangleShape x178b193eec228e6e)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xe3cee4adb9c72451(Int32 xb565f4681f05557a)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32 xb565f4681f05557a)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()

       à ArpentGIS.frmMain.MapVignette_TrackEnded(Object sender, TrackEndedTrackInteractiveOverlayEventArgs e) dans D:\ToBackup\D3E\ArpentGIS\frmMain.cs:ligne 2309

       à ThinkGeo.MapSuite.DesktopEdition.TrackInteractiveOverlay.OnTrackEnded(TrackEndedTrackInteractiveOverlayEventArgs e)

       à ThinkGeo.MapSuite.DesktopEdition.TrackInteractiveOverlay.xd77507b5a0283dab()

       à ThinkGeo.MapSuite.DesktopEdition.TrackInteractiveOverlay.MouseUpCore(InteractionArguments interactionArguments)

       à ThinkGeo.MapSuite.DesktopEdition.InteractiveOverlay.MouseUp(InteractionArguments interactionArguments)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x4eb49068e137ed8f(InteractionArguments x195facd4ef5d753d)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfeca3317d3c75bbb(Object xd9272088e65bd176, x6a8380ab1a7ebb4c xc2fd4c0ed406cdb7)

       à ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.OnMouseEvent(x6a8380ab1a7ebb4c e)

       à ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.AnalyseMouseUp(Double screenX, Double screenY, Double worldX, Double worldY, MapMouseButton mouseButton)

       à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xd1e58e0ca2447b93(Object xd9272088e65bd176, MouseEventArgs xc2fd4c0ed406cdb7)

       à System.Windows.Forms.Control.OnMouseUp(MouseEventArgs e)

       à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

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

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

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

       à System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

       à System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)

       à System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

       à System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

       à System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

       à System.Windows.Forms.Application.Run(Form mainForm)

       à ArpentGIS.Program.Main() dans D:\ToBackup\D3E\ArpentGIS\Program.cs:ligne 20

       à System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)

       à System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)

       à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()

       à System.Threading.ThreadHelper.ThreadStart_Context(Object state)

       à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

       à System.Threading.ThreadHelper.ThreadStart()

  InnerException: System.ArgumentException

       Message="Le paramètre n'est pas valide."

       Source="System.Drawing"

       StackTrace:

            à System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)

            à System.Drawing.Bitmap..ctor(Int32 width, Int32 height)

            à MapSuiteECW.ECWImage.GetScaledBitmap(Int32 cx, Int32 cy, Int32 width, Int32 height, Int32 destWidth, Int32 destHeight)

            à MapSuiteGeoRaster.GeoImageECW.GetScaledBitmap(Int32 cx, Int32 cy, Int32 width, Int32 height, Int32 destWidth, Int32 destHeight)

            à MapSuiteGeoRaster.GeoImage.GetScaledBitmap(Int32 cx, Int32 cy, Int32 width, Int32 height, Int32 destWidth, Int32 destHeight)

       InnerException: 

 



Patrick, 
  
   Can we get a little more information other than the stack trace?  Could you package up a small application and send it to support@thinkgeo.com so we can re-create it.  The more simple the sample the better and be sure to include the minimum data required to re-create the problem.  The faster we get that the faster we will be able to get it fixed.  Also include anything special like if you compile to X86, are on a 64 bit machine etc. 
  
 David

I’ll do tomorrow. 
  
 It occurs while panning/zooming with few .ecw layers displayed. 
 I’m building x86 application and running on a x64 machine. 
  
 Patrick.

Patrick, 
  
   Good to know about the environment, it will help us test.  I look forward to the samples.  It is strange because I am pretty sure nothing changed with ECW between releases. 
  
 David