Re: Memory Leaks and ARC
Re: Memory Leaks and ARC
- Subject: Re: Memory Leaks and ARC
- From: Jens Alfke <email@hidden>
- Date: Tue, 22 Apr 2014 18:49:41 -0700
On Apr 22, 2014, at 6:38 PM, Varun Chandramohan <email@hidden> wrote:
> However when I
> run the same code in older OS 10.7.x and run leaks there I noticed big
> dump of leaks and my daemon (runs without a UI) has numerous _NSCFString
> autoreleased with no pool in place - just leaking -
If you’re creating NSThreads, make sure the main/top-level method of each thread has an autorelease pool. I seem to recall some change in functionality there in recent OS versions.
> break on objc_autotreleaseNoPool() to debug
…but instead of listening to me speculate, you could set a breakpoint on that function and find out exactly where the leak is happening.
—Jens
_______________________________________________
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