Re: CPU utilization in Snow Leopard
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