G
Guest
I have a global variable that is of type Image. I set this to different
images in different routins using BitBlt to copy from the screen. If I
dispose of the variable image after I'm thru with each image, not only the
image is disposed but also the variable and I can't reference it again.
Question is do I need to dispose of the old image each time I change the
variable's image or will the old image be disposed by the garbage collector?
I have the same problem with a font variable. Thanks for any answer.
dim myimage as bitmap
private sub dosomething()
myimage = get_imageno1
myimage.dispose
......
end sub
Private sub dosomethingelse()
myimage = get_imageno2
.........
end sub
images in different routins using BitBlt to copy from the screen. If I
dispose of the variable image after I'm thru with each image, not only the
image is disposed but also the variable and I can't reference it again.
Question is do I need to dispose of the old image each time I change the
variable's image or will the old image be disposed by the garbage collector?
I have the same problem with a font variable. Thanks for any answer.
dim myimage as bitmap
private sub dosomething()
myimage = get_imageno1
myimage.dispose
......
end sub
Private sub dosomethingelse()
myimage = get_imageno2
.........
end sub