dim. 15 août 2010, 13h29
eddymaue
atoutfox.public.association
Re: problème technico-philosophique
il y a ca aussi
Releasing Objects and References from Memory
If a reference to an object exists, releasing the object does not clear
the object from memory. For example, the following command releases
frmInvoice, the original object:
RELEASE frmInvoice
However, because a reference to an object belonging to frmInvoice still
exists, the object is not released from memory until txtCustName is
released with the following command:
RELEASE txtCustName
oui
Jean à Grenoble a exposé le 2010-08-14 :
> Le 14/08/2010 19:30, Gregory Adam a écrit :
>>
>> Ne jamais appeler la methode destroy() -
>> (1) C'est un evenement,
>> (2) Cela ne detruira pas l'objet, juste executer le code de la methode
> Je suis d'accord avec toi. C'est ce qui m'a choqué et c'est pourquoi j'ai
> posé la question.
>
>>
>> __
>> (1) Si la classe a ete ajoutee par AddObject() - utiliser RemoveObject()
>> (2) Autrement - mettre null dans la propriete du 'parent' (ou
>> RemoveProperty())
>>
> Pour ajouter mes classes j'utilise Thisform.newobject() Peut-être y a t il
> une différence ? En tout cas, je ne connaissais pas removeobject(), je
> regarde ...
>
> A+
> Jean
Permalink : http://www.atoutfox.org/nntp.asp?ID=0000003830