[Gambas-user] Things to do before closing a form

Benoit Minisini gambas at ...1...
Fri Mar 21 01:29:48 CET 2008


On jeudi 20 mars 2008, richard terry wrote:
> If you simply close a form, does it destory everything that has been
> created?, eg if you made a database connection, etc, does this along with
> the form get removed?
>
> Regards
>
> Richard T
>

Not necessarily.

Objects are destroyed then no variable, no array slot, no collection slot has 
a reference on it. Moreover, Gambas GUI controls are internally referenced by 
the underlying toolkit widget they are associated with, i.e. they cannot be 
destroyed if their associated widget is alive.

Regards,

-- 
Benoit Minisini




More information about the User mailing list