• 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: Problem with garbage collection in server application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with garbage collection in server application


  • Subject: Re: Problem with garbage collection in server application
  • From: Rick Hoge <email@hidden>
  • Date: Sun, 23 Jan 2011 08:07:53 -0500

Sorry - I forgot to mention that I am indeed wrapping my code in its own autorelease pool.  This should ensure that the only retain count remaining is from intentional retains by other objects that need to reference my datasets.

Rick

On 2011-01-23, at 12:59 AM, Dave Keck wrote:

> The autorelease pool is popped after the current iteration of the run
> loop exits. If the datasets are autoreleased explicitly by you, or
> implicitly by any number of APIs that you call, then indeed the
> objects won't be deallocated until the run loop iteration exits. If
> you need (more) determinate behavior over your datasets' deallocation,
> surrounding your loop with its own autorelease pool is probably the
> solution. It doesn't sound like that solution would translate to your
> production code, though.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Problem with garbage collection in server application (From: Rick Hoge <email@hidden>)
 >Re: Problem with garbage collection in server application (From: Rick Hoge <email@hidden>)
 >Re: Problem with garbage collection in server application (From: Dave Keck <email@hidden>)

  • Prev by Date: Re: Problem with garbage collection in server application
  • Next by Date: Re: how to change NSButton color
  • Previous by thread: Re: Problem with garbage collection in server application
  • Next by thread: Re: Problem with garbage collection in server application
  • Index(es):
    • Date
    • Thread