Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clear Class
Message
 
 
À
27/04/2007 16:34:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01220486
Message ID:
01220616
Vues:
19
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform