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.DrawHelper(...)
=>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(...)
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
Sorry for the late response, Mike; I was pulled to another project...
The call stack is always the same. The version of UltraWinGrid.v3 we are using is 3.0.20033.1113. We are not doing anything special with the RowSelector. Here is what the grid looks like in the program:
Thanks,
Sean
There's still not much information here to go on. But I can think of two reasons for this exception.
1)This could be a threading issue. Is your application doing anything with threading? Are you creating a new thread or a background worker?
2) This is a bug in the grid. The version of the grid you are using is almost 8 years old. So it would not be terribly surprising if this exception was the result of a bug that has long-since been fixed. You might want to try downloading a trial version of the latest NetAdvantage release and see if the problem goes away.