Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remove class from memory
Message
De
14/06/2002 21:04:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00668826
Message ID:
00668834
Vues:
19
>>> So after the loMyClass.Method1() call, that program ends? What you should do is after the method call, set loMyClass = .NULL. to clear it from memory.
>>
>>Well, loMyClass gets out of scope when it is finished. The problem is that the class definition remains in memory. Nadya's suggestion seems to be the way to go.
>
>BTW, interestingly, I haven't used this command myself. But I've just realized a place, where I can use it. I'll check the code on Monday.

Well, so far, on this type on context, I always had those DEFINE CLASS at the framework level. However, one specific class is not bound to the framework and I prefer to have it in the sub exe. Your suggestion solves it. Whenever I come back from that sub exe, I just issue the specific command. That helps me a lot.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform