Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why are classes left in memory?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Titre:
Why are classes left in memory?
Divers
Thread ID:
00685078
Message ID:
00685078
Vues:
78
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
Fil
Voir

Click here to load this message in the networking platform