GDI+ Exception

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Maqsood Ahmed (maqsood_ahmed_at_gawab.com)
Date: 10/05/04


Date: Tue, 05 Oct 2004 00:42:13 -0700

Hello!
 We have experienced following exception in our application that runs
over .net v1.0, I had gone through the internet to find an answer about
it but failed to do so. I had found a comment about this exception by
Mr. Bob Powell (MVP).
Now I want to know that if this problem presists in .net framework
v1.1??

---------------
System.InvalidOperationException: The object is currently in use
elsewhere.
   at System.Drawing.Graphics.EndContainer(GraphicsContainer container)
   at System.Windows.Forms.DibGraphicsBufferManager.ReleaseBuffer
(GraphicsBuffer buffer)
   at System.Windows.Forms.GraphicsBuffer.Dispose()
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)
   at Syncfusion.Windows.Forms.Grid.GridControlBase.WndProc(Message&
msg)
   at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg,
IntPtr
wparam, IntPtr lparam)
----------------------

Maqsood Ahmed
Kolachi Advanced Technologies

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



Relevant Pages

  • Re: class-wide begin/end blocks/exception handling
    ... class HiThere ...  rescue Exception => msg ...   self.exceptionHandle ...
    (comp.lang.ruby)
  • Re: Stop excution (aka silent exception)
    ... Without going into a diatribe here, global exception handling should have ... To display a friendly msg to the user before exiting (or restart the app ... excution of the calling method as well, as does an exception that stops ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: is parameter an iterable?
    ... which leads me to belive that 'msg' is not type. ... it's an instance of the exception type, ... create a SomeError exception and pass the value as its ... Python will treat this as ...
    (comp.lang.python)
  • Re: Array of Exceptions
    ... Hit the go button and the exception thrown depends on the array index ... Whenever the code catches a lower-level exception, e.g., IOException, if I must rethrow it I rethrow the standard one with the original one as the cause. ... throw new FabulatorException(msg, ex); ...
    (comp.lang.java.programmer)
  • Re: GDI+ Exception
    ... When I made my comments about this exception it was in relation to code ... Manual doule buffering seems to prevent this from ever happening. ... Answer those GDI+ questions with the GDI+ FAQ ... > at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) ...
    (microsoft.public.dotnet.languages.csharp)