G
Guest
I don't think I clearly stated my problem in my prior question so let me try
again. I have the following:
Private myobject as Bitmap
myobject = mybitmap (created from a part of the screen)
How do I dispose of the instance of mybitmap object yet retain myobject so I
can use it again like:
myobject = mysecondbitmap
If I do a myobject.Dispose, I can no longer assign the variable myobject to
another bitmap. If I set myobject to nothing, the instantance of mybitmap
and mysecondbitmap are still existing and have to wait for the GC to dispose
of them.
again. I have the following:
Private myobject as Bitmap
myobject = mybitmap (created from a part of the screen)
How do I dispose of the instance of mybitmap object yet retain myobject so I
can use it again like:
myobject = mysecondbitmap
If I do a myobject.Dispose, I can no longer assign the variable myobject to
another bitmap. If I set myobject to nothing, the instantance of mybitmap
and mysecondbitmap are still existing and have to wait for the GC to dispose
of them.