Yes, this should work. See also my reply to Hugo.
>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.
If it's not broken, fix it until it is.
My Blog