This is a migrated thread and some comments may be shown as answers.

"The operation completed successfully" exception

1 Answer 114 Views
Form
This is a migrated thread and some comments may be shown as answers.
Nhan Rao
Top achievements
Rank 1
Nhan Rao asked on 01 Feb 2010, 04:33 PM
I'm getting an exception in a RadForm based class with the following call stack:

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)?



1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 04 Feb 2010, 08:50 AM
Hi Nhan Rao,

Thanks for contacting us and for the provided details.

This seems to be very rear exception which occurs in specific occasions. Since you are the first to report this issue, we cannot make any certain suggestion why this could happen. If you are able to give us further details (like the Windows Message which causes this exception etc.) it will be helpful for us to narrow down the reasons that might lead to this case. Also we will appreciate if you manage to send us your application so that we can take a look at the code.

Thanks for your time.

We look forward to receiving further details on the case.

All the best,
Deyan
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Form
Asked by
Nhan Rao
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or