Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form not releasing on Close
Message
 
 
À
17/11/2003 10:09:09
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00849922
Message ID:
00850663
Vues:
21
Amanda,

You can explicitly do it with:
this.oSomething = .null.
Normally an object that was added via an AddObject() call, or dropped onto a form/class in the designer fits in the VFP object containership model. And VFP will clean up these objects correctly by itself.

If you create an additional object reference to an object it increases an internal reference counter, and an object will not destruct until its reference count goes to zero. A container (like form) can not destruct until all of its contained objects destruct.

I put together a tool to help people trackdown dangling object references, you can get it from my website, under Q&A, OOP, article qoop017

>Ok, I hate to sound terribly dense, but how do I set a reference to NULL? I am not sure how to check for dangling object references either. Please be kind, I am new :)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform