ThinkGeo.com    |     Documentation    |     Premium Support

Exception while drawing (3.1.299)

Hello,


I'm using multithread + tile + previewtile.


Almost all my user receive the following exception randomly while displaying the map (zooming, panning, adding layer ...)

My user are with french XP or Vista 32 bits OS.


System.ArgumentException: Le paramètre n'est pas valide.

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

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

   à ThinkGeo.MapSuite.Core.BitmapTileCache.MergeBitmaps(IEnumerable`1 tilesToMerge, Double scale)

   à ThinkGeo.MapSuite.Core.FileBitmapTileCache.GetHigherScaleTileCore(RectangleShape tileBoundingBox, Double tileScale)

   à ThinkGeo.MapSuite.Core.BitmapTileCache.GetHigherScaleTile(RectangleShape tileBoundingBox, Double tileScale)

   à ThinkGeo.MapSuite.DesktopEdition.Overlay.xb3186ca70b77c0af(GeoCanvas x31c084515ae9393f, BitmapTile x8a53648d37fcd628)

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

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

   à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x13b023a82ad02573(Overlay x8c3bff8200340d24, RectangleShape x178b193eec228e6e, Boolean x991dc8ddc7528b44)

   à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x7d52d0ad1d6779cd(Boolean x991dc8ddc7528b44, RectangleShape x178b193eec228e6e)

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

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

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

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

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

   à ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.AnalyseMouseWheel(Double screenX, Double screenY, Double worldX, Double worldY, Int32 delta)

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

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

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

   à 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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 


************** Assemblys chargés **************

mscorlib

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

ArpentGIS

    Version de l'assembly : 1.2.0.28

    Version Win32 : 1.2.0.28

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/ArpentGIS.exe

----------------------------------------

DevExpress.OfficeSkins.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.OfficeSkins.v9.2.DLL

----------------------------------------

DevExpress.BonusSkins.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.BonusSkins.v9.2.DLL

----------------------------------------

System.Windows.Forms

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

DevExpress.XtraBars.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraBars.v9.2.DLL

----------------------------------------

DevExpress.Utils.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.Utils.v9.2.DLL

----------------------------------------

DevExpress.Data.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.Data.v9.2.DLL

----------------------------------------

DevExpress.XtraEditors.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraEditors.v9.2.DLL

----------------------------------------

DevExpress.XtraGrid.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraGrid.v9.2.DLL

----------------------------------------

DesktopEdition

    Version de l'assembly : 3.0.0.0

    Version Win32 : 3.1.299

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DesktopEdition.DLL

----------------------------------------

MapSuiteCore

    Version de l'assembly : 3.0.0.0

    Version Win32 : 3.1.299

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/MapSuiteCore.DLL

----------------------------------------

DevExpress.XtraScheduler.v9.2.Core

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraScheduler.v9.2.Core.DLL

----------------------------------------

DevExpress.XtraBars.v9.2.resources

    Version de l'assembly : 9.2.0.0

    Version Win32 : 9.2.0.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/fr/DevExpress.XtraBars.v9.2.resources.DLL

----------------------------------------

System.Xml

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

mscorlib.resources

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

DevExpress.XtraTreeList.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraTreeList.v9.2.DLL

----------------------------------------

System.Data

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

DevExpress.XtraVerticalGrid.v9.2

    Version de l'assembly : 9.2.9.0

    Version Win32 : 9.2.9.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraVerticalGrid.v9.2.DLL

----------------------------------------

DevExpress.XtraEditors.v9.2.resources

    Version de l'assembly : 9.2.0.0

    Version Win32 : 9.2.0.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/fr/DevExpress.XtraEditors.v9.2.resources.DLL

----------------------------------------

System.Design

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll

----------------------------------------

Gsi.Tools

    Version de l'assembly : 1.2.0.22

    Version Win32 : 1.2.0.22

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/Gsi.Tools.DLL

----------------------------------------

ArpentGIS.file.agi

    Version de l'assembly : 1.2.0.25

    Version Win32 : 1.2.0.25

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/ArpentGIS.file.agi.DLL

----------------------------------------

Proj4ExtensionX86

    Version de l'assembly : 1.0.0.0

    Version Win32 : 1.0.0.0

    CodeBase : file:///C:/WINDOWS/system32/Proj4ExtensionX86.dll

----------------------------------------

NetTopologySuite

    Version de l'assembly : 1.7.3.31740

    Version Win32 : 1.7.3.31740

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/NetTopologySuite.DLL

----------------------------------------

ArpentGIS.file.fdi

    Version de l'assembly : 1.2.0.22

    Version Win32 : 1.2.0.22

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/ArpentGIS.file.fdi.DLL

----------------------------------------

GeoAPI

    Version de l'assembly : 1.1.0.0

    Version Win32 : 1.1.0.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/GeoAPI.DLL

----------------------------------------

System.Drawing.resources

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.1433 (REDBITS.050727-1400)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing.resources/2.0.0.0_fr_b03f5f7f11d50a3a/System.Drawing.resources.dll

----------------------------------------

System.Windows.Forms.resources

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.1433 (REDBITS.050727-1400)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll

----------------------------------------

 



 


Patrick,
 
Glad to see you again!
 
Please look at the post below, I think maybe you encounter the same problem:
gis.thinkgeo.com/Support/Dis...fault.aspx
 
And you can switch the ThreadingMode to SingleThreaded, let me know if it still throws exception or not.
 
If you make sure you’re in the same bug, you can contact our supports support@thinkgeo.com and let them give you the DLL package 3.1.302 for DesktopEdition.
 
Or you think it’s another issue, please give me more information about it.
 
Thanks
James

James, 
  
 No exception in singlethead. 
 I doubt that it’s the same bug that the one you’re talking and it’s not the same exception and not the same behaviour. 
  
 My bug seems to be related to the tiling/preview tiling system and french OS enviroment. 
  
 This occurs when users are panning/zooming as you can see in the exception trace. 
  
 Please let me know as soon as it’s fixed. 
  
 Patrick. 
  


 


Patrick,
 
Thanks for your more information! No exception in singlethead is a proof of the bug which fixed in 3.1.302.
 
Have you ever disable the preview, if throw exception still, that means the bug is not related to preview, in this condition, maybe you can try the 3.1.302.
 
I tested 3.1.302 in multithread, it has not any exception if I do any operation.
 
If still can not find your problem, maybe you can make a small sample to reproduce this bug, I think that’s the best and fast way to find the bug.
 
Thanks
James

Please provide me the 302 version on my ftp account. 
  
 Thank you. 
 Patrick.

Patrick, 
  
 Thanks for your post and sorry for the delay for some problem in the discussion forum in the past few days. 
  
 I have asked our support to send you a temporary version (3.1.302).  
  
 Yale. 


Patrick,  
  
 Please see your FTP folder for the 3.1.302 Dll Pack.

Hi, this bug seems to be still reproducible … :( 
 Here is a new exception on 3.1.302 with multithread and preview tile; it occured while zoomin with mouse wheel … 
  
 L’exception System.ArgumentException n’a pas été gérée 
   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) 
        à ThinkGeo.MapSuite.Core.BitmapTileCache.MergeBitmaps(IEnumerable`1 tilesToMerge, Double scale) 
        à ThinkGeo.MapSuite.Core.FileBitmapTileCache.GetHigherScaleTileCore(RectangleShape tileBoundingBox, Double tileScale) 
        à ThinkGeo.MapSuite.Core.BitmapTileCache.GetHigherScaleTile(RectangleShape tileBoundingBox, Double tileScale) 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.xb3186ca70b77c0af(GeoCanvas x31c084515ae9393f, BitmapTile x8a53648d37fcd628) 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.DrawPreviewCore(GeoCanvas canvas) 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.DrawPreview(GeoCanvas canvas) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x13b023a82ad02573(Overlay x8c3bff8200340d24, RectangleShape x178b193eec228e6e, Boolean x991dc8ddc7528b44) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x7d52d0ad1d6779cd(Boolean x991dc8ddc7528b44, RectangleShape x178b193eec228e6e) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xb348bd4011a858f2(Int32 xb565f4681f05557a) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32 xb565f4681f05557a) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xc8fbf8304fe7558e(InteractionArguments x195facd4ef5d753d) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfeca3317d3c75bbb(Object xd9272088e65bd176, x6a8380ab1a7ebb4c xc2fd4c0ed406cdb7) 
        à ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.OnMouseEvent(x6a8380ab1a7ebb4c e) 
        à ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.AnalyseMouseWheel(Double screenX, Double screenY, Double worldX, Double worldY, Int32 delta) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xb0cb8571d4771126(Object xd9272088e65bd176, MouseEventArgs xc2fd4c0ed406cdb7) 
        à System.Windows.Forms.Control.OnMouseWheel(MouseEventArgs e) 
        à System.Windows.Forms.Control.WmMouseWheel(Message& m) 
        à 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.nExecuteAssembly(Assembly assembly, String[] args) 
        à System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel) 
        à System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly() 
        à System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData) 
        à System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext) 
        à System.Activator.CreateInstance(ActivationContext activationContext) 
        à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone() 
        à System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
        à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
        à System.Threading.ThreadHelper.ThreadStart() 
   InnerException:  


Another one, hope this helps. 
  
 L’exception System.InvalidOperationException n’a pas été gérée 
   Message=“This method will return too many cells that might cause performance problem. Please using GetIntersectingRowColumnRange method instead.” 
   Source=“MapSuiteCore” 
   StackTrace: 
        à ThinkGeo.MapSuite.Core.Matrix.GetIntersectingCells(RectangleShape worldExtent) 
        à ThinkGeo.MapSuite.Core.BitmapTileCache.GetTiles(RectangleShape worldExtent) 
        à ThinkGeo.MapSuite.Core.FileBitmapTileCache.GetHigherScaleTileCore(RectangleShape tileBoundingBox, Double tileScale) 
        à ThinkGeo.MapSuite.Core.BitmapTileCache.GetHigherScaleTile(RectangleShape tileBoundingBox, Double tileScale) 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.xb3186ca70b77c0af(GeoCanvas x31c084515ae9393f, BitmapTile x8a53648d37fcd628) 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.DrawPreviewCore(GeoCanvas canvas) 
        à ThinkGeo.MapSuite.DesktopEdition.Overlay.DrawPreview(GeoCanvas canvas) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x13b023a82ad02573(Overlay x8c3bff8200340d24, RectangleShape x178b193eec228e6e, Boolean x991dc8ddc7528b44) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x7d52d0ad1d6779cd(Boolean x991dc8ddc7528b44, RectangleShape x178b193eec228e6e) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xb348bd4011a858f2(Int32 xb565f4681f05557a) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32 xb565f4681f05557a) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xc8fbf8304fe7558e(InteractionArguments x195facd4ef5d753d) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfeca3317d3c75bbb(Object xd9272088e65bd176, x6a8380ab1a7ebb4c xc2fd4c0ed406cdb7) 
        à ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.OnMouseEvent(x6a8380ab1a7ebb4c e) 
        à ThinkGeo.MapSuite.DesktopEdition.x5cd462d41be2f68a.AnalyseMouseWheel(Double screenX, Double screenY, Double worldX, Double worldY, Int32 delta) 
        à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xb0cb8571d4771126(Object xd9272088e65bd176, MouseEventArgs xc2fd4c0ed406cdb7) 
        à System.Windows.Forms.Control.OnMouseWheel(MouseEventArgs e) 
        à System.Windows.Forms.Control.WmMouseWheel(Message& m) 
        à 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.nExecuteAssembly(Assembly assembly, String[] args) 
        à System.Runtime.Hosting.ManifestRunner.Run(Boolean checkAptModel) 
        à System.Runtime.Hosting.ManifestRunner.ExecuteAsAssembly() 
        à System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext, String[] activationCustomData) 
        à System.Runtime.Hosting.ApplicationActivator.CreateInstance(ActivationContext activationContext) 
        à System.Activator.CreateInstance(ActivationContext activationContext) 
        à Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssemblyDebugInZone() 
        à System.Threading.ThreadHelper.ThreadStart_Context(Object state) 
        à System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) 
        à System.Threading.ThreadHelper.ThreadStart() 
   InnerException:  


Patrick, 
  
 Thanks for your post. 
  
 It seems the 2 excetions are 2 different issues, right? 
  
 I am very familiar with the second one. The problem is you set wrong unit for your map control, for example, your data should be in DecimalDegrees , while your set your map control unit to Meter or feet etc, which will cause wrong caculation when dealing with Tiles. 
  
 Any more information would be appriciated. 
  
 Thanks. 
  
 Yale 


The 2 issues occurs when I play (scroll/pan) with the map in multithread environment with preview tiles on. 
 in single thread and without preview tile, with the same data, it works well. 
  
 I’m using decimaldregrees data, projected to meters and displayed with map control unit to meter. 
  
 I’m pretty sure that there is an issue somewhere in your tiling system ; I can reproduce it very easily but only in multithread+previewtile mode. 
 Remember that I’m french and the issue maybe related to my locale. 
  
 add. info, I set map.minscale = 10; I don’t know if it’s related 
 Add. info2 : I can also reproduce case where one tile is missing/misplaced/misaligned when displaying; again only in multithread+preview only 
  
 Regards, 
 Patrick.

Patrick, 
  
 Thanks for your post. 
  
 We have already created a virtual machine which using French environment instead of English environment. That machine has recreated many issues before, some of them are solved, and some of them are not. But this time, I can not recreate the exception, I follow the setting as you mentioned: use multi-threaded mode, turn on preview, project data from decimal degree to meter unit, set MapUnit to meter, set mini scale to 10.  
  
 So if you could provide a small and simple sample, it will be very helpful to recreate this problem and solve it. 
  
 I am sorry about the problem of info2, to be frank they were the known issues which we could not solve recently, if another users mentioned this problem, we will let them use single-threaded temporary until we solve it. I am so sorry given you so many inconveniences, I am sure that if we fix it I will let you know as soon as possible. 
  
 Thanks 
 James 


Any progress? 
  
 here is a very simple code that works on windows EN and crash on Windows FR: 
  
 private void LoadAnShapeFileFeatureLayer_Load(object sender, EventArgs e) 
         { 
           winformsMap1.MapUnit = GeographyUnit.Meter; 
           winformsMap1.MinimumScale = 10; 
  
           winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean); 
  
           //WorldMapKitWmsDesktopOverlay worldMapKitDesktopOverlay = new WorldMapKitWmsDesktopOverlay(); 
           //winformsMap1.Overlays.Add(worldMapKitDesktopOverlay); 
  
           ShapeFileFeatureLayer worldLayer = new ShapeFileFeatureLayer(@"…\SampleData\Data\Countries02.shp"); 
           worldLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20; 
           worldLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = AreaStyles.CreateSimpleAreaStyle(GeoColor.SimpleColors.Transparent, GeoColor.FromArgb(100, GeoColor.SimpleColors.Green)); 
  
           Proj4Projection p = new Proj4Projection( 
                 Proj4Projection.GetEpsgParametersString(4326), 
                 Proj4Projection.GetGoogleMapParametersString()); 
  
           worldLayer.FeatureSource.Projection = p; 
  
           LayerOverlay staticOverlay = new LayerOverlay(); 
           staticOverlay.Layers.Add("WorldLayer", worldLayer); 
           winformsMap1.Overlays.Add(staticOverlay); 
  
           winformsMap1.ThreadingMode = MapThreadingMode.Multithreaded; 
  
           // Cache 
           staticOverlay.TileCache = new FileBitmapTileCache(@"c:\temp\ms", "staticOverlayTileCache"); 
           staticOverlay.PreviewTileCache = new FileBitmapTileCache(@"c:\temp\ms", "staticOverlayPreviewTileCache"); 
           staticOverlay.IsBase = true; 
  
           winformsMap1.CurrentExtent = worldLayer.GetBoundingBox(); 
           winformsMap1.Refresh(); 
         } 


Again and again ... please help !!


 


 


 
Consultez la fin de ce message pour plus de détails sur l'appel du débogage

juste-à-temps (JIT) à la place de cette boîte de dialogue.
 
************** Texte de l'exception **************

System.ArgumentException: Le paramètre n'est pas valide.

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

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

   à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xfbd15a0e9d15f4e2(Graphics x783a718028818269, RectangleShape xb35a33b423b17f65)

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

   à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x742ba885258f6c2c(RectangleShape xb35a33b423b17f65, Overlay x99251f66cdabc2ad, Int32 xa209325f5c895f7e, Int32 x7454a0d1965919b1, GeographyUnit xbb704b4400ce6f76)

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

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

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

   à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.OnPaint(PaintEventArgs e)

   à System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)

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

   à 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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
 


************** Assemblys chargés **************

mscorlib

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

ArpentGIS

    Version de l'assembly : 1.2.1.2

    Version Win32 : 1.2.1.2

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/ArpentGIS.exe

----------------------------------------

DevExpress.OfficeSkins.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.OfficeSkins.v9.3.DLL

----------------------------------------

DevExpress.BonusSkins.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.BonusSkins.v9.3.DLL

----------------------------------------

System.Windows.Forms

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

----------------------------------------

System.Drawing

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

----------------------------------------

MapSuiteCore

    Version de l'assembly : 3.0.0.0

    Version Win32 : 3.1.302

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/MapSuiteCore.DLL

----------------------------------------

DevExpress.XtraScheduler.v9.3.Core

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraScheduler.v9.3.Core.DLL

----------------------------------------

DevExpress.XtraBars.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraBars.v9.3.DLL

----------------------------------------

DevExpress.Utils.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.Utils.v9.3.DLL

----------------------------------------

DevExpress.Data.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.Data.v9.3.DLL

----------------------------------------

DevExpress.XtraEditors.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraEditors.v9.3.DLL

----------------------------------------

DevExpress.XtraGrid.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraGrid.v9.3.DLL

----------------------------------------

DesktopEdition

    Version de l'assembly : 3.0.0.0

    Version Win32 : 3.1.302

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DesktopEdition.DLL

----------------------------------------

DevExpress.XtraBars.v9.3.resources

    Version de l'assembly : 9.3.0.0

    Version Win32 : 9.3.0.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/fr/DevExpress.XtraBars.v9.3.resources.DLL

----------------------------------------

System.Xml

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

----------------------------------------

mscorlib.resources

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///c:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll

----------------------------------------

ArpentGIS.resources

    Version de l'assembly : 1.2.1.2

    Version Win32 : 1.2.1.2

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/fr/ArpentGIS.resources.DLL

----------------------------------------

DevExpress.XtraTreeList.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraTreeList.v9.3.DLL

----------------------------------------

System.Data

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

DevExpress.XtraVerticalGrid.v9.3

    Version de l'assembly : 9.3.2.0

    Version Win32 : 9.3.2.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/DevExpress.XtraVerticalGrid.v9.3.DLL

----------------------------------------

DevExpress.XtraEditors.v9.3.resources

    Version de l'assembly : 9.3.0.0

    Version Win32 : 9.3.0.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/fr/DevExpress.XtraEditors.v9.3.resources.DLL

----------------------------------------

System.Design

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll

----------------------------------------

Gsi.Tools

    Version de l'assembly : 1.2.1.0

    Version Win32 : 1.2.1.0

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/Gsi.Tools.DLL

----------------------------------------

ArpentGIS.file.agi

    Version de l'assembly : 1.2.1.0

    Version Win32 : 1.2.1

    CodeBase : file:///C:/Program%20Files/D3E%20Electronique/ArpentGIS-Expert/ArpentGIS.file.agi.DLL

----------------------------------------

Accessibility

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.3053 (netfxsp.050727-3000)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

----------------------------------------

System.Drawing.resources

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.42 (RTM.050727-4200)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing.resources/2.0.0.0_fr_b03f5f7f11d50a3a/System.Drawing.resources.dll

----------------------------------------

System.Windows.Forms.resources

    Version de l'assembly : 2.0.0.0

    Version Win32 : 2.0.50727.42 (RTM.050727-4200)

    CodeBase : file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_fr_b77a5c561934e089/System.Windows.Forms.resources.dll

----------------------------------------
 
************** Débogage JIT **************

Pour activer le débogage juste-à-temps (JIT), le fichier de configuration pour cette

application ou cet ordinateur (machine.config) doit avoir la valeur

jitDebugging définie dans la section system.windows.forms.

L'application doit également être compilée avec le débogage

activé.
 
Par exemple :
 
<configuration>

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

</configuration>
 
Lorsque le débogage juste-à-temps est activé, les exceptions non gérées

seront envoyées au débogueur JIT inscrit sur l'ordinateur

plutôt que d'être gérées par cette boîte de dialogue.
 







 


Patrick,
 
Your sample code can not work because it will throw exception at the penultimate line of code: 
winformsMap1.CurrentExtent = worldLayer.GetBoundingBox();
 
The reason is that the worldLayer is not Open. 
 
We can easily add worldLayer.Open() to make your sample code works, but I am afraid this code might not the original one which will throw the exception in FR not in EN. Could you review the code and verify it?
 
I can not recreate your problem so far, sometimes it will very easy to solve the problem if we can recreate the problem easily,
So could you provide a more certainly sample, for example, if I click a button, the exception will be thrown. I remember you have provided a sample about tile cache, if I click the button, it will generate cached images in specific folder, in French environment, the double contain ‘,’ so the folder name is not as we expected, when we recreate the problem, at the same time, we solve the problem.
 
I will keep testing it, and if I make any progresses I will let you know.
 
Thanks.
 
James

James, 
  
 Here is a more simpler sample that raise the exception on XP 32 bits FR machine. 
 it works perfectly on my W7 64 bits FR computer. 
  
 I build using 3.1.302; x86 mode; .net 3.5 sp1 
  
 Here, we are in singlethread, with no layer loaded and we can see a large red cross on the screen and the exception is raised. 
 à System.Drawing.Bitmap…ctor(Int32 width, Int32 height, PixelFormat format) 
 à System.Drawing.Bitmap…ctor(Int32 width, Int32 height) 
 (…) 
 à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.OnPaint(PaintEventArgs e) 
  
 Please note that the cache tile folders do not exist before we launch the program 
 and MS only create staticOverlayTileCache1; staticOverlayTileCache is not created. 
  
         private void LoadAnShapeFileFeatureLayer_Load(object sender, EventArgs e) 
         { 
             winformsMap1.MapUnit = GeographyUnit.Meter; 
             winformsMap1.AdornmentOverlay.ShowLogo = false; 
  
             LayerOverlay staticOverlay = new LayerOverlay(); 
             winformsMap1.Overlays.Add(staticOverlay); 
  
             LayerOverlay staticOverlay1 = new LayerOverlay(); 
             winformsMap1.Overlays.Add(staticOverlay1); 
  
             winformsMap1.ZoomLevelSnapping = ZoomLevelSnappingMode.None; 
             winformsMap1.MaximumScale = 6000000; 
             winformsMap1.MinimumScale = 10; 
  
             // Cache 
             staticOverlay.TileCache = new FileBitmapTileCache(@"c:\temp\ms", "staticOverlayTileCache");  
             staticOverlay.IsBase = true; 
  
             staticOverlay1.TileCache = new FileBitmapTileCache(@"c:\temp\ms", "staticOverlayTileCache1"); 
  
             winformsMap1.Refresh(); 
         }

Patrick, 
  
 This time, the result is that the map will show a white screen without logo, but still won’t throw exception with the red cross. 
 I will do more test on it and let you know the result. 
  
 Thank you for your quickly response. 
  
 James

James, 
  
 I’ve 5 test PCs around me; all XP FR ; no major difference (same SP) 
  
 2 reproduce the error systematically, the cache folder is not created and a large red cross 
 3 works perfectly, white screen as expected. 
  
 I’ve double checked and the user can write in the temp folder and there is enough space to hold the tiles. 
  
 I’m lost and I do not see what I can do … please help.

James, 
  
 I’ve 5 test PCs around me; all XP FR ; no major difference (same SP) 
  
 2 reproduce the error systematically, the cache folder is not created and a large red cross 
 3 works perfectly, white screen as expected. 
  
 I’ve double checked and the user can write in the temp folder and there is enough space to hold the tiles. 
  
 I’m lost and I do not see what I can do … please help.

Patrick, 
  
 Thanks for your patience.  
  
 I am worse than you that I don’t have so many machines to test , but from the stack trace, I located the method which throws the exception, it contains the code that create a bitmap by passing the width and height, so I added a check to avoid input the invalid value, It is just a try, I am not very sure that can solve your problem. 
  
 I will test the new DLL tomorrow and send you a temporary package. 
  
 You still can provide additional if you think it’s helping. 
  
 Thanks, 
 James