• 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: CPU utilization in Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CPU utilization in Snow Leopard


  • Subject: Re: CPU utilization in Snow Leopard
  • From: Graham Cox <email@hidden>
  • Date: Tue, 20 Oct 2009 17:37:09 +1100


On 20/10/2009, at 5:28 PM, Shashanka L wrote:

Autoreleased object from [NSDate dateWithTimeIntervalSinceNow: 0.1] is not getting released and taking lots of memory.

Does any one came across this issue in snow leopard??

Or any solution....?


Since there's no autorelease pool inside your do...while loop, of course it isn't going to get autoreleased then. Autorelease isn't magic, someone has to tell it when it can release - that's you. Put your pool inside the loop so it is created and destroyed each time.

--Graham


_______________________________________________

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: CPU utilization in Snow Leopard
      • From: Joar Wingfors <email@hidden>
References: 
 >Re: CPU utilization in Snow Leopard (From: Shashanka L <email@hidden>)

  • Prev by Date: GC Basic questions
  • Next by Date: Re: CPU utilization in Snow Leopard
  • Previous by thread: Re: CPU utilization in Snow Leopard
  • Next by thread: Re: CPU utilization in Snow Leopard
  • Index(es):
    • Date
    • Thread