E
Eric Cadwell
We're running Load Runner to test a large 1.0 based WinForms application.
I'm getting the following exception when opening and closing a form 400 -
450 times. The form contains several controls and custom UserControls. All
the code is native C#.
I'm not making an explicit call to ToBitmap or DrawIcon in my code. Can
anyone help?
Exception Caught in Main(): at System.Drawing.Graphics.GetHdc()
at System.Drawing.Icon.Draw(Graphics graphics, Rectangle targetRect)
at System.Drawing.Graphics.DrawIcon(Icon icon, Rectangle targetRect)
at System.Drawing.Icon.ToBitmap()
at System.Windows.Forms.ThreadExceptionDialog..ctor(Exception t)
at System.Windows.Forms.ThreadExceptionDialog..ctor(Exception t)
at System.Windows.Forms.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.ControlNativeWindow.OnThreadException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Insight.RepUI.Core.Launcher.Main()
TIA,
Eric Cadwell
I'm getting the following exception when opening and closing a form 400 -
450 times. The form contains several controls and custom UserControls. All
the code is native C#.
I'm not making an explicit call to ToBitmap or DrawIcon in my code. Can
anyone help?
Exception Caught in Main(): at System.Drawing.Graphics.GetHdc()
at System.Drawing.Icon.Draw(Graphics graphics, Rectangle targetRect)
at System.Drawing.Graphics.DrawIcon(Icon icon, Rectangle targetRect)
at System.Drawing.Icon.ToBitmap()
at System.Windows.Forms.ThreadExceptionDialog..ctor(Exception t)
at System.Windows.Forms.ThreadExceptionDialog..ctor(Exception t)
at System.Windows.Forms.ThreadContext.OnThreadException(Exception t)
at System.Windows.Forms.Control.WndProcException(Exception e)
at System.Windows.Forms.ControlNativeWindow.OnThreadException(Exception e)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr
wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at
System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMetho
ds+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason,
Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at Insight.RepUI.Core.Launcher.Main()
TIA,
Eric Cadwell