Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
YAQ on dangling reference
Message
De
30/03/2012 03:08:09
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01539685
Message ID:
01539749
Vues:
81
>>>Hi,
>>>
>>>I am sorry for bringing up this topic again but I need to clarify something.
>>>
>>>Say a Form A calls a Form B and passes to the form B the value of itself (THISFORM). In the INIT method of Form B the value of the passed THISFORM (or Form A) is assigned to the form property FormB_ReferenceFormA. So now the Form B property FormB_ReferenceFormA hold the value referencing the form A.
>>>
>>>Then if somewhere in the form Form B the code sets the value of FormB_ReferenceFormA to NULL, does it actually release Form A? TIA.
>>
>>Only if all the other references holding a pointer to Form A have been assigned something else or released.
>
>I re-read what you said and I believe now I understand it. Thank you.


It is not exactly true

The following code
do form A
will instantiate the form. Form A has no references and it still does not release
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform