• 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: NSAutoreleasePool dilemma
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAutoreleasePool dilemma


  • Subject: Re: NSAutoreleasePool dilemma
  • From: John Stiles <email@hidden>
  • Date: Wed, 19 Oct 2005 15:53:08 -0700

I think by the time you reach atexit, Cocoa may have already done cleanup of its own, so you could end up with bizarre results.

On Oct 19, 2005, at 3:44 PM, David Catmull wrote:

So it seems the problem was related to releasing the pool as the process was shutting down (through the use of std::atexit()). If I only create the pool in a just-in-time manner as needed, I get no log warnings. It's a little more complicated, but I guess it's a more appropriate use of autorelease pools anyway.

--
David Catmull
email@hidden
http://www.uncommonplace.com/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40blizzard.com


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSAutoreleasePool dilemma (From: David Catmull <email@hidden>)
 >Re: NSAutoreleasePool dilemma (From: John Stiles <email@hidden>)
 >Re: NSAutoreleasePool dilemma (From: David Catmull <email@hidden>)
 >Re: NSAutoreleasePool dilemma (From: John Stiles <email@hidden>)
 >Re: NSAutoreleasePool dilemma (From: David Catmull <email@hidden>)

  • Prev by Date: Different NSCells in an NSOutlineView
  • Next by Date: Core Data Binding with NSArrayController: Replace NSArrayController w/in IB breaks the application -- solved.
  • Previous by thread: Re: NSAutoreleasePool dilemma
  • Next by thread: [NSMutableDictionary setObject:forKey:] problem
  • Index(es):
    • Date
    • Thread