"The operation completed successfully" exception

2 posts, 0 answers
  1. Nhan Rao
    Nhan Rao avatar
    7 posts
    Member since:
    Sep 2009

    Posted 01 Feb 2010 Link to this post

    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:


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

  2. Deyan
    Deyan avatar
    2147 posts

    Posted 04 Feb 2010 Link to this post

    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,
    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.
Back to Top