Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Proper Object Cleanup after Instantiation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Proper Object Cleanup after Instantiation
Divers
Thread ID:
00660655
Message ID:
00660655
Vues:
48
Kevin,

I have noticed my application accumulates more and more unknown datasessions the longer the app is running. In several locations, I create properties to hold the object references for bizobj classes I instantiate on my own. I was under the assumption that these classes would propertly die (close views and other cleanup) when the hosting method or class was released.

I have seen suggested code for calling this.oMyObject.release(), which appears to indicate I am responsible for insuring things are cleaned up. I have also seen comments in 6.1.2 where you have been adding release methods to standardize everything.

What I should be doing to not have datasession leftovers properly clean up my instantiated bizobj classes?

Also, does using this.addobject() add any automatic house keeping of benefit or is direct instantiation in code just as good?


Thanks,

Gary Pike.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform