Re: Exceptions and autorelease pools
Re: Exceptions and autorelease pools
- Subject: Re: Exceptions and autorelease pools
- From: Ken Thomases <email@hidden>
- Date: Tue, 06 Dec 2011 21:57:56 -0600
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.
Regards,
Ken
_______________________________________________
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