Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two references to one object
Message
From
25/02/2004 12:09:57
 
 
To
25/02/2004 10:53:07
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00880607
Message ID:
00880757
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform