Hello,
ScaleBarAdornmentLayer raises a GDI+ exception with 3.0.307.
This can be reproduced in your sample "CreateAScaleLineAdornmentLayer.cs" simply by changing ScaleLineAdornmentLayer to ScaleBarAdornmentLayer
L'exception System.Runtime.InteropServices.ExternalException n'a pas été gérée
Message="Une erreur générique s'est produite dans GDI+."
Source="System.Drawing"
ErrorCode=-2147467259
StackTrace:
à System.Drawing.Image.Save(Stream stream, ImageCodecInfo encoder, EncoderParameters encoderParams)
à System.Drawing.Image.Save(Stream stream, ImageFormat format)
à ThinkGeo.MapSuite.Core.GdiPlusGeoCanvas.EndDrawingCore()
à ThinkGeo.MapSuite.Core.GeoCanvas.EndDrawing()
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xe6f5d5d0c25c9bd5(Graphics x783a718028818269, RectangleShape xb35a33b423b17f65, Overlay x99251f66cdabc2ad)
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.xf12dc5c7e687c240(Boolean x991dc8ddc7528b44, RectangleShape x178b193eec228e6e)
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.x9ac8c50f434f4b39(Int32 xb565f4681f05557a)
à ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()
à ArpentGIS.frmMain.cmShowScale_ItemClick(Object sender, ItemClickEventArgs e) dans D:\ToBackup\D3E\ArpentGIS\frmMain.cs:ligne 667
à DevExpress.XtraBars.BarItem.OnClick(BarItemLink link)
à DevExpress.XtraBars.BarBaseButtonItem.OnClick(BarItemLink link)
à DevExpress.XtraBars.BarItemLink.OnLinkClick()
à DevExpress.XtraBars.BarItemLink.OnLinkAction(BarLinkAction action, Object actionArgs)
à DevExpress.XtraBars.BarItemLink.OnLinkActionCore(BarLinkAction action, Object actionArgs)
à DevExpress.XtraBars.ViewInfo.BarSelectionInfo.ClickLink(BarItemLink link)
à DevExpress.XtraBars.ViewInfo.BarSelectionInfo.UnPressLink(BarItemLink link)
à DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPressItem(DXMouseEventArgs e, RibbonHitInfo hitInfo)
à DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnUnPress(DXMouseEventArgs e, RibbonHitInfo hitInfo)
à DevExpress.XtraBars.Ribbon.Handler.BaseRibbonHandler.OnMouseUp(DXMouseEventArgs e)
à DevExpress.XtraBars.Ribbon.Handler.RibbonHandler.OnMouseUp(DXMouseEventArgs e)
à DevExpress.XtraBars.Ribbon.RibbonControl.OnMouseUp(MouseEventArgs e)
à System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
à System.Windows.Forms.Control.WndProc(Message& m)
à DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
à DevExpress.XtraBars.Ribbon.RibbonControl.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)
à DevExpress.Utils.Win.Hook.ControlWndHook.CallWindowProc(IntPtr pPrevProc, IntPtr hWnd, Int32 message, IntPtr wParam, IntPtr lParam)
à DevExpress.Utils.Win.Hook.ControlWndHook.WindowProc(IntPtr hWnd, Int32 message, 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 21
à 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:
Any help is welcome.
Patrick.