Information générale
Catégorie:
The Mere Mortals Framework
Titre:
Proper Object Cleanup after Instantiation
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement