Re: to dispose() or not to dispose()?
Re: to dispose() or not to dispose()?
- Subject: Re: to dispose() or not to dispose()?
- From: Chuck Hill <email@hidden>
- Date: Tue, 16 Aug 2005 10:45:00 -0700
On Aug 16, 2005, at 10:39 AM, Kieran Kelleher wrote:
Hello All,
Is it a good practice to call dispose() after unlock() on an
EOEditingContext that I want to throw away and never again use?
Yes.
Does it help garbage collection and free up memory?
Yes.
Or is unlock() and "forget-about-it" good enough?
Yes, it is "good enough". Calling dispose() is better.
Chuck
The EOEditingContext.dispose() API is not detailed enough to know
when/if/whether I should call dispose(). However I did notice the
practice in this WireHose example code:
http://www.wirehose.com/developer/DeveloperGuide/Windows/Contents/
Fetching_dictionaries.htm
Regards, Kieran
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden