We are now getting the following exception intermittently with a Tiff image loaded in a RasterLayer. Most of the time it seems to work just fine. But when making edits that require full map reload, we get this maybe 5% of the time on this map. So far we have not reproduced it anywhere else except with this map running in the full product (I don’t have a reduced repro for you).
System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(String filename)
at ThinkGeo.MapSuite.Core.GdiPlusRasterSource.OpenCore()
at ThinkGeo.MapSuite.Core.RasterSource.Open()
at ThinkGeo.MapSuite.Core.RasterLayer.OpenCore()
at ThinkGeo.MapSuite.Core.Layer.Open()
at Toro.Client.Shared.Map.Core.StaticMap.GetBoundingBox(LayerOverlay layerOverlay) in D:\Toro\Archer\Solution\Client\Shared\SharedMapPanel\Core\StaticMap.cs:line 697
at Toro.Client.Shared.Map.Core.StaticMap.LoadStaticMap(String mapFilesPath) in D:\Toro\Archer\Solution\Client\Shared\SharedMapPanel\Core\StaticMap.cs:line 270
at Toro.Client.Shared.Map.LynxMapControl.ReloadStaticLayersCore() in D:\Toro\Archer\Solution\Client\Shared\SharedMapPanel\LynxMapControl.cs:line 373
at Toro.Client.Shared.Map.MapInterface.ReloadStaticLayersCore() in D:\Toro\Archer\Solution\Client\Shared\SharedMapPanel\MapInterface.cs:line 327
at Toro.Client.Shared.Map.MapInterface.ReloadStaticLayers() in D:\Toro\Archer\Solution\Client\Shared\SharedMapPanel\MapInterface.cs:line 161
at Toro.Client.Addin.AdvancedSetup.Map.MapStateManager.SaveStaticMapConfiguration() in D:\Toro\Archer\Solution\Client\Addins\AdvancedSetup\AdvancedSetupAddin\Map\MapStateManager.cs:line 160
at Toro.Client.Addin.AdvancedSetup.Map.Tabs.GeneralSettings.btnCommit_Click(Object sender, EventArgs e) in D:\Toro\Archer\Solution\Client\Addins\AdvancedSetup\AdvancedSetupAddin\Map\Tabs\GeneralSettings.cs:line 43
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.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.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)