M
Marc Nemegeer
Hi,
I have a misterious problem, which I'm unable to solve. Can somebody give me
some clues where to start looking ??
We have an MDI application with child forms on it. Each of these forms has
an icon in the upper left corner From time to time, we get at random
time intervals, when the user clicks somewhere on the form an "Invalid
Parameter used".
The following is a stack dump :
ExceptionManager.InnerException1: Invalid parameter used.
ExceptionManager.Stack: at System.Drawing.Bitmap..ctor(Int32 width, Int32
height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
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.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at GeneralUI.Desktop.SingleInstance.Run(Form frmMain) in
D:\Ihc\GeneralUI\Desktop\SingleInstance.vb:line 38
at GeneralUI.Desktop.MainForm.Main() in
D:\Ihc\GeneralUI\Desktop\Mainform.vb:line 513
Any clues ? Or ideas ? Or is it something internal in the framework ? A
possible work around ??
Thanks,
Marc
I have a misterious problem, which I'm unable to solve. Can somebody give me
some clues where to start looking ??
We have an MDI application with child forms on it. Each of these forms has
an icon in the upper left corner From time to time, we get at random
time intervals, when the user clicks somewhere on the form an "Invalid
Parameter used".
The following is a stack dump :
ExceptionManager.InnerException1: Invalid parameter used.
ExceptionManager.Stack: at System.Drawing.Bitmap..ctor(Int32 width, Int32
height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
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.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32
dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason,
ApplicationContext context)
at System.Windows.Forms.Application.Run(Form mainForm)
at GeneralUI.Desktop.SingleInstance.Run(Form frmMain) in
D:\Ihc\GeneralUI\Desktop\SingleInstance.vb:line 38
at GeneralUI.Desktop.MainForm.Main() in
D:\Ihc\GeneralUI\Desktop\Mainform.vb:line 513
Any clues ? Or ideas ? Or is it something internal in the framework ? A
possible work around ??
Thanks,
Marc