Windows GDI Error.

mattatwork

New member
Joined
Sep 30, 2005
Messages
1
Programming Experience
3-5
Hello, I'm stumped on this one. We developed a windows application and it runs fine on my XP development box. At clients however, both the 98SE machine and the ME machine are generating this error. Sometimes it is random other times it consistently happens. I've tried reinstalling the framework but to no avail. Also, it referenced an icon so I remove the icon but that didn't help either. Any ideas?

System.ArgumentException: Invalid parameter used.
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.DispatchMessageA(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 [Our Client].frmMain.Main()
 
Back
Top