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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to