• 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: Exceptions and autorelease pools
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Exceptions and autorelease pools
      • From: Uli Kusterer <email@hidden>
References: 
 >Exceptions and autorelease pools (From: Larry Campbell <email@hidden>)
 >Re: Exceptions and autorelease pools (From: Ken Thomases <email@hidden>)
 >Re: Exceptions and autorelease pools (From: Steve Sisak <email@hidden>)

  • Prev by Date: Re: Locks
  • Next by Date: Re: Locks
  • Previous by thread: Re: Exceptions and autorelease pools
  • Next by thread: Re: Exceptions and autorelease pools
  • Index(es):
    • Date
    • Thread