Problem with Graphics Class...

From: Sujith Manuel (sujith_at_rarefind.com)
Date: 03/08/04


Date: Mon, 8 Mar 2004 11:15:10 +0530

Hi All,

I have a problem with System.Drawing.Graphics class. Whenever I use an
object of graphics class, after it goes out of scope, it's giving me an
exception as follows:

"An unhandled exception of type 'System.InvalidOperationException' occurred
in system.drawing.dll"
"Additional information: The object is currently in use elsewhere."

Iam also using Dispose() method of Graphics Class. Anybody knows about this
behavior and because of this it's consuming a lot of memory.

Thanks in advance,
Sujith Manuel.



Relevant Pages

  • Re: Problem with Graphics Class...
    ... Please post the code that causes the exception. ... Graphics Transform stack and Flood-Filling ... "Sujith Manuel" wrote in message ... > Iam also using Disposemethod of Graphics Class. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Problem with Graphics Class...
    ... If this code block is called mutiple times, then the exception keeps coming ... >> Iam also using Disposemethod of Graphics Class. ... >> Sujith Manuel. ...
    (microsoft.public.dotnet.framework.drawing)