Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Two references to one object
Message
De
25/02/2004 12:09:57
 
 
À
25/02/2004 10:53:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00880607
Message ID:
00880757
Vues:
14
For classes with Release method
VFP resolve cross objects reference deadlock;
or when you release a LINKED variable to a scx form.
X = CREATEOBJECT("form")
y = CREATEOBJECT("form")
Addproperty(m.x,"crossref",m.y)
Addproperty(m.y,"crossref",m.x)

* now i have a cross
x.Release
y.Release
* and VFP put NULL on all references
? m.y,m.x
Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform