• 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
to dispose() or not to dispose()?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

to dispose() or not to dispose()?


  • Subject: to dispose() or not to dispose()?
  • From: Kieran Kelleher <email@hidden>
  • Date: Tue, 16 Aug 2005 13:39:37 -0400

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?

Does it help garbage collection and free up memory?

Or is unlock() and "forget-about-it" good enough?

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

_______________________________________________
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


  • Follow-Ups:
    • Re: to dispose() or not to dispose()?
      • From: Chuck Hill <email@hidden>
  • Prev by Date: AW: "Choosing" the WOWorkerThread that executes the request...
  • Next by Date: Re: to dispose() or not to dispose()?
  • Previous by thread: EOMasterCopyAssociation
  • Next by thread: Re: to dispose() or not to dispose()?
  • Index(es):
    • Date
    • Thread