A generic error occurred in GDI+

  • Thread starter Thread starter TA
  • Start date Start date
T

TA

Hi,

I'm testing an app in a virtual pc (Win 98 SE, framework 1.1 SP1), an i'm
getting "a generic error occurred in gdi+" in screens where there's a
groupbox or a datagrid. if i remove then, it works fine. The error messages
are bellow. Is this a "real" error or is happening just because it's a
virtual pc? Can someone help me?


Tia

TA


groupbox

************** Exception Text **************
System.Runtime.InteropServices.ExternalException: A generic error occurred
in GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
RectangleF layoutRectangle, StringFormat format)
at System.Windows.Forms.GroupBox.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.GroupBox.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)



datagrid

************** Exception Text **************
System.Runtime.InteropServices.ExternalException: A generic error occurred
in GDI+.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawString(String s, Font font, Brush brush,
RectangleF layoutRectangle, StringFormat format)
at System.Windows.Forms.DataGrid.PaintColumnHeaderText(Graphics g,
Rectangle boundingRect)
at System.Windows.Forms.DataGrid.PaintColumnHeaders(Graphics g)
at System.Windows.Forms.DataGrid.PaintGrid(Graphics g, Rectangle
gridBounds)
at System.Windows.Forms.DataGrid.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e,
Int16 layer, Boolean disposeEventArgs)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.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)
 
If you run the same code on a real Win98SE PC, does it fail? (That would
tell you if it's only a VM that fails)

- Bob Comer
 
Our app experiences similar problems under Win98 on real machines. We decided
to raise the required OS to Win2000 as a result, Win98 can't really handle
anything more than the simplest .NET applications.

Regards,
Matt Garven
 
Back
Top