• 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: In-loop releasing of objects does not free memory?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: In-loop releasing of objects does not free memory?


  • Subject: Re: In-loop releasing of objects does not free memory?
  • From: Charles Steinman <email@hidden>
  • Date: Thu, 14 Feb 2008 15:56:14 -0800 (PST)

--- Uli Kusterer <email@hidden> wrote:

>
> On 14.02.2008, at 21:12, Nick Zitzmann wrote:
>
> >
> > On Feb 14, 2008, at 12:49 PM, Uli Kusterer wrote:
> >[SNIP]
> > That'll cause a crash if GC isn't being used,
> since -drain is
> > documented as doing the same thing as -release in
> non-GC applications.
>
>
>   Oh? Are you sure? Wasn't aware of that.

If you want to confirm it yourself, create a
Foundation tool and add "[pool drain]; [NSArray
array];" anywhere in the boilerplate main file. You'll
get the "Hey, create an autorelease pool, stupid!"
warning when you run it.

Cheers,
Chuck


      ____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping
_______________________________________________

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

References: 
 >Re: In-loop releasing of objects does not free memory? (From: Uli Kusterer <email@hidden>)

  • Prev by Date: Re: Latest Cocoa documentation download
  • Next by Date: Re: Changing app menu title programmatically
  • Previous by thread: Re: In-loop releasing of objects does not free memory?
  • Next by thread: outlineView:persistentObjectForItem: - autosaving of outline state
  • Index(es):
    • Date
    • Thread