Information générale
Catégorie:
Programmation Orientée Object
Titre:
Why are classes left in memory?
I'm instantiating and destroying a class from the command line. When I next go into the .prg where the class is defined and begin editing, I'm given the message, "Remove classes from memory?". However, if I change something in the class (as demonstrated below) I don't get that message when I go to edit the class. Why is there stuff left in memory on some occassions and not on others?
The class I'm instantiating (class1) is defined in a .prg. In the init process of class1, 2 other objects (class2 and class3) are instantiated (both subclassed from another class (class4)). I have two properties in class1 that contain the references to the objects created.
If I instantiate both class2 and class3 during class1's Init, then I get the "Remove classes from memory?" message. But, if I instantiate just one of the two (it doesn't seem to matter which), I don't get the message.
Any clues as to what's going on?
Rodd
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement