
Error in System.Windows.Forms.Form.Upda
teLayered()
I've had this reported by the same user a couple of times now, but I can't
figure out what is going on, and it's only been reported on that single
user's machine. Mostly randomly, I get an error like this:
An unhandled exception has occurred in your application. If you click
Continue, the application will ignore this error and attempt to continue.
If you click Quit, the application will be shut down immediately.
The parameter is incorrect.
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ComponentModel.Win32Exception: The parameter is incorrect
at System.Windows.Forms.Form.UpdateLayered()
at System.Windows.Forms.Form.OnHandleCreated(EventArgs e)
at System.Windows.Forms.Control.WmCreate(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmCreate(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr wparam, IntPtr lparam)
Any idea what could be causing this error? It always seems to occur when
the application is being shut down. It only happens on this one machine
(running Windows 2000 SP2), but not on another of our other Win2k SP2 boxes.
TIA
Ryan Gregg