• 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: Losing my memory - a caching problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Losing my memory - a caching problem?


  • Subject: Re: Losing my memory - a caching problem?
  • From: Stuart Rogers <email@hidden>
  • Date: Tue, 17 Aug 2010 22:20:55 +0100

On 17 Aug 2010, at 21:36, Cem Karan wrote:
> On Aug 17, 2010, at 4:05 PM, Stuart Rogers wrote:
>>
>>   NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
>>   ...
>>   [pool release];
>
> Have you tried using drain instead of release?  That seems to be the preferred way at this point, triggering GC collection if needed (I don't know if your code is GC enabled, but if the library code is GC enabled, then this will solve some of those problems)

My app is uses retain/release - I have an aversion to garbage collection - so
(according to the documentation) drain will do exactly the same as release.

Stuart

_______________________________________________

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: Losing my memory - a caching problem?
      • From: "Sean McBride" <email@hidden>
    • Re: Losing my memory - a caching problem?
      • From: Cem Karan <email@hidden>
References: 
 >Re: Losing my memory - a caching problem? (From: Cem Karan <email@hidden>)
 >Re: Losing my memory - a caching problem? (From: Ken Ferry <email@hidden>)
 >Re: Losing my memory - a caching problem? (From: Stuart Rogers <email@hidden>)
 >Re: Losing my memory - a caching problem? (From: Cem Karan <email@hidden>)

  • Prev by Date: Re: [PARTIAL SOLUTION] Erratic Cocoa Behavior
  • Next by Date: Re: Losing my memory - a caching problem?
  • Previous by thread: Re: Losing my memory - a caching problem?
  • Next by thread: Re: Losing my memory - a caching problem?
  • Index(es):
    • Date
    • Thread