Re: Disposing of Objects.

From: Cor Ligthert (notmyfirstname_at_planet.nl)
Date: 12/26/04


Date: Sun, 26 Dec 2004 18:57:43 +0100

Dennis,

Why you make your Image global when you want to dispose it all the time, is
this not more efficient in the way you are using it.

\\\
dim myimage as bitmap
private sub dosomething()
dim myimage as bitmap
myimage = get_imageno1
myimage.dispose
 ......
end sub
///

Cor



Relevant Pages

  • Re: Disposing of Objects.
    ... When you need to use it global than you can not dispose it in my opinion. ... > part of the panel) using bitblt to a global bitmap object. ... I replace the original rectangular area with the original bitmap to ... >> private sub dosomething() ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Disposing of Objects.
    ... example, in the mousedown event, I copy a rectangular area of my panel (only ... part of the panel) using bitblt to a global bitmap object. ... > dim myimage as bitmap ... > private sub dosomething() ...
    (microsoft.public.dotnet.languages.vb)

Loading