Re: Exceptions and autorelease pools
Re: Exceptions and autorelease pools
- Subject: Re: Exceptions and autorelease pools
- From: Uli Kusterer <email@hidden>
- Date: Fri, 09 Dec 2011 10:37:14 +0100
On Dec 7, 2011, at 4:57 AM, Ken Thomases wrote:
> On Dec 6, 2011, at 8:01 PM, Steve Sisak wrote:
>> Given that operations have much shorter lifespan than threads, I'd worry about the leaked NSAutoreleasePool objects in a long-running application.
>
> When using Cocoa, exceptions should be, well, exceptional. They should not be used for flow control. They should only occur for programmer error, and you should strive to eliminate them before deployment. There should be no reason to be concerned about an accumulation of autorelease pool objects due to numerous exceptions because there shouldn't be numerous exceptions.
Except if you're working with Distributed Objects, of course.
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
_______________________________________________
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