Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
40
Receiving "A generic error occurred in GDI+."
posted

Hello, I am trying to solve a problem we are having. We have clients running our software over Terminal Services (running on various Windows OS/Server versions).  Occasionally, they will receive the following error/stack trace:

A generic error occurred in GDI+.  

=>System.Drawing.Bitmap.FromHicon(...)  

=>System.Drawing.Icon.ToBitmap(...)  

=>Infragistics.Win.UltraWinGrid.RowSelectorUIElement.DrawImage(...)  

=>Infragistics.Win.UIElement.DrawElement(...)  

=>Infragistics.Win.UIElement.DrawChildElements(...)  

=>Infragistics.Win.UIElement.DrawElement(...)  

=>Infragistics.Win.UIElement.DrawChildElements(...)  

=>Infragistics.Win.UIElement.DrawElement(...)  

=>Infragistics.Win.UIElement.DrawChildElements(...)  

=>Infragistics.Win.UIElement.DrawElement(...)  

=>Infragistics.Win.UIElement.DrawChildElements(...)  

=>Infragistics.Win.UIElement.DrawElement(...)  

=>Infragistics.Win.UIElement.DrawHelper(...)  

=>Infragistics.Win.ControlUIElementBase.Draw(...)  

=>Infragistics.Win.ControlUIElementBase.Draw(...)  

=>Infragistics.Win.UltraWinGrid.UltraGridUIElement.Draw(...)  

=>Infragistics.Win.UltraControlBase.OnPaint(...)  

=>Infragistics.Win.UltraWinGrid.UltraGrid.OnPaint(...)  

=>System.Windows.Forms.Control.PaintWithErrorHandling(...)  

=>System.Windows.Forms.Control.WmPaint(...)  

=>System.Windows.Forms.Control.WndProc(...)  

=>System.Windows.Forms.Control.ControlNativeWindow.OnMessage(...)  

=>System.Windows.Forms.Control.ControlNativeWindow.WndProc(...)  

=>System.Windows.Forms.NativeWindow.Callback(...)  

We have been unable to replicate this error in-house, and we've been told that it happens randomly, that there is no step-by-step procedure to get this to happen consistently.
Has anyone else experienced this problem, or does anyone know of anything I can try to resolve this error?
Thanks,
Sean

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    Hi Sean,

    From the call stack, it looks like the grid is trying to paint an image into a RowSelector and it's blowing up while trying to create a Bitmap.

    Without more information, all I could do here is take some pretty wild guesses.

    What version of the grid are you using?

    Is the call stack always the same? If not, do you have more call stacks you could post? With more information, we might be able to see a pattern

Children