• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: to dispose() or not to dispose()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >to dispose() or not to dispose()? (From: Kieran Kelleher <email@hidden>)

  • Prev by Date: to dispose() or not to dispose()?
  • Next by Date: Re: Port assignments to WO apps
  • Previous by thread: to dispose() or not to dispose()?
  • Next by thread: Mimer SQL Engine on Mac OS X with WO support
  • Index(es):
    • Date
    • Thread