Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When/where to destroy objects?
Message
De
28/08/2007 13:37:44
 
 
À
28/08/2007 13:17:36
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01250957
Message ID:
01250969
Vues:
13
>I have a main program that instantiates a class. That class contains various objects. What is the best way to clean-up all the references? This program is a service that starts on boot and remains running until PC shutdown or the service is terminated. What can I put in my program/classes to ensure I don't leave stuff hanging around? Per Cathy's suggestion, I'll set them to NULL after destroying them, but where best to do that?

I like to have the Destroy method of the containing object call a custom CleanUp method to do this.

Tamar
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform