Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Any way to find dangling references?
Message
From
08/02/2008 09:11:45
 
 
To
08/02/2008 03:24:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01288201
Message ID:
01290775
Views:
22
>This would be my idea of a forcerelease method making use of ainstance() and giving feedback on what it did try to kill,including THIS - untested:
>Procedure forcerelease()
...
>Endproc
Now have tested and it has two problems: THIS = .NULL. does not work, which would not hurt that much, as one could also do
oObj.forcerelease()
oObj = .null.
from the outside. And if oObj is a variable, it would be found by Ainstance() anyway.

The other thing not working is references stored by addproperty("oReference",oObj), as that's not found and returned by AINSTANCE().

Bye, Olaf.
Previous
Reply
Map
View

Click here to load this message in the networking platform