Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any way to find dangling references?
Message
De
08/02/2008 09:11:45
 
 
À
08/02/2008 03:24:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01288201
Message ID:
01290775
Vues:
21
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform