Re: What should I Dispose

Tech-Archive recommends: Fix windows errors by optimizing your registry



" **Developer**" <REMOVEdeveloper@xxxxxxxxxx> schrieb:
I guess it just takes experience to build up an understanding.
Why is it that Bitmaps and Graphics objects are usually disposed
while labels and forms are not?

What about a PrinterSettings objects? Should it be disposed?

It cannot be disposed. It's likely that the object doesn't use unmanaged resources.


--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


.