Re: Problem with garbage collection in server application
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