Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove class from memory
Message
From
14/06/2002 21:04:29
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00668826
Message ID:
00668834
Views:
20
>>> 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
Previous
Reply
Map
View

Click here to load this message in the networking platform