[Gambas-user] Using Classes

MaxVK maximvonk at ...626...
Fri Apr 11 10:52:50 CEST 2008


Hi, Id like to get something fully straight in my mind here:

I have a class that I use to manipulate a treeview and some data that is
connected to each treeview item. I have used a class for this so that I can
call this code from any one of several forms that use treeviews in my
project without the code becoming confused about the treeview that it is
working on.

I call the class in the header of my forms like this: PUBLIC DoTree AS NEW
clsTree

I can then access the functions in the class through DoTree.<function>, but
my question is, do I need to explicitly destroy this class object (DoTree)
in some way to prevent it from using memory when its not in use?

For example, the first form in the project uses this class, but is only
actually visible for a short period, and is hidden when another form opens.
Do I need to clean up the class object (Dotree) while the form is hidden to
prevent it hogging memory when it is not in use.

Regards

Max
-- 
View this message in context: http://www.nabble.com/Using-Classes-tp16627272p16627272.html
Sent from the gambas-user mailing list archive at Nabble.com.





More information about the User mailing list