Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper Object Cleanup after Instantiation
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Proper Object Cleanup after Instantiation
Miscellaneous
Thread ID:
00660655
Message ID:
00660655
Views:
49
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
Map
View

Click here to load this message in the networking platform