>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.