General information
Category:
The Mere Mortals Framework
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only