Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Clear Class
Message
From
27/04/2007 16:34:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01220486
Message ID:
01220614
Views:
21
Thanks Naomi, it did not help. I guess I could add something like this to the destroy event
Class.destroy
  =strtofile(this.class+chr(13)+chr(10),"ResidentClasses.txt")
  dodefault()
Then in the calling procedure do something like this...
if file("residentClasses.txt")
  for i = 1 to alines(alcls,filetostr("ResidentClasses.Txt"))
    lcCls = alCls(i)
    clear class (lcCls)
  endfor
endif
erase "residentclasses.txt"
Glenn

>>I need to clear classes at the end of a process, but I am not sure what classes are still in memory. Is there a way to enumerate loaded classes so that I may release them.
>>
>>For 1 = 1 to alen(allloadedclasses,1)
>>  clear class (allloadedclasses(i)
>>endfor
>>
>
>Funny, while I was trying to search for multiple read events, I found this Re: How can I tell what classes are in memory Thread #1079926 which may be helpful.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform