Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Clean up object
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
Clean up object
Divers
Thread ID:
01239781
Message ID:
01239781
Vues:
46
Hello,

I have trouble cleaning up objects after assigning an object reference. The code is like this:
loObject1 = NEWOBJECT("DetailHandler","MyLib")
loObject1.oDetail = NEWOBJECT("OneDetail","MyLib")
*-- Because we need to refer in code to the detail handler object, we need to create an object reference in a propery:
loObject1.oDetail.oDetailHandler = loObject1
*
*-- And at a later moment:
RELEASE loObject1
After releasing the loObject1 object the object is not entirely released because of the object reference. I tried to put code in loObject1.DESTROY like this:
THIS.oDetail.oDetailHandler = NULL
But it turns out the DESTROY is not even fired, for obvious reasons.

What can I do to resolve this problem?
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform