• 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: Memory management in a thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Memory management in a thread


  • Subject: Re: Memory management in a thread
  • From: Allan Odgaard <email@hidden>
  • Date: Fri, 12 Mar 2004 21:04:45 +0100

On 12. Mar 2004, at 20:39, Randall Meadows wrote:

Or am I confused? I'm guessing I cannot release on an already-autoreleased object, right? What to do to clean up my loop?

You are correct -- you can alloc/release a "nested" auto release pool in the outer loop, that way objects will instead go to this one, and they will be released after each iteration.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Memory management in a thread (From: Randall Meadows <email@hidden>)

  • Prev by Date: RE: Memory management in a thread
  • Next by Date: RE: Memory management in a thread
  • Previous by thread: Re: Memory management in a thread
  • Next by thread: RE: Memory management in a thread
  • Index(es):
    • Date
    • Thread