FreeGadget() is still needed?

BlitzMax Forums/BlitzMax Beginners Area/FreeGadget() is still needed?

JoshK(Posted 2006) [#1]
Why can't the GC just delete this window set to Null? We still have to use FreeGadget()?

win:tgadget=createwindow("",200,200,400,300)

win=Null

GCCollect()

Notify "Is the window still here?"

Notify "Yes it is."



Haramanai(Posted 2006) [#2]
Close the window.


JoshK(Posted 2006) [#3]
I don't want to.


Haramanai(Posted 2006) [#4]
Hide the window.