I'm getting an exception in a RadForm based class with the following call stack:
BackgroundWnd is a very simple window that just shows a solid background color. It is based on RadForm. Unfortunately, I can't provide a simple code sample to make this happen. It can occur after many hours of operation doing lots of different things. I found the following discussion on this type of error:
http://nomagichere.blogspot.com/2008/03/systemcomponentmodelwin32exception-is.html
However, I don't know if it's applicable. I couldn't find a call to CreateGraphics in your source code in the RadForm project. I don't call CreateGraphics in my code either. Have you seen this issue before or have any idea what could cause it (or fix it)?
The operation completed successfully at System.Drawing.BufferedGraphicsContext.CreateCompatibleDIB(IntPtr hdc, IntPtr hpal, Int32 ulWidth, Int32 ulHeight, IntPtr& ppvBits) at System.Drawing.BufferedGraphicsContext.CreateBuffer(IntPtr src, Int32 offsetX, Int32 offsetY, Int32 width, Int32 height) at System.Drawing.BufferedGraphicsContext.AllocBuffer(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle) at System.Drawing.BufferedGraphicsContext.AllocBufferInTempManager(Graphics targetGraphics, IntPtr targetDC, Rectangle targetRectangle) at System.Drawing.BufferedGraphicsContext.Allocate(IntPtr targetDC, Rectangle targetRectangle) at System.Windows.Forms.Control.WmPaint(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.WndProc(Message& m) at Telerik.WinControls.UI.RadFormControlBase.WndProc(Message& m) at BPCommon.BPForm.WndProc(Message& m) at BPMonitorWall.BackgroundWnd.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
BackgroundWnd is a very simple window that just shows a solid background color. It is based on RadForm. Unfortunately, I can't provide a simple code sample to make this happen. It can occur after many hours of operation doing lots of different things. I found the following discussion on this type of error:
http://nomagichere.blogspot.com/2008/03/systemcomponentmodelwin32exception-is.html
However, I don't know if it's applicable. I couldn't find a call to CreateGraphics in your source code in the RadForm project. I don't call CreateGraphics in my code either. Have you seen this issue before or have any idea what could cause it (or fix it)?