• 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: Memory Leaks and ARC
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Memory Leaks and ARC
      • From: Greg Parker <email@hidden>
References: 
 >Memory Leaks and ARC (From: Dave <email@hidden>)
 >Re: Memory Leaks and ARC (From: Quincey Morris <email@hidden>)
 >Re: Memory Leaks and ARC (From: Varun Chandramohan <email@hidden>)

  • Prev by Date: Re: Memory Leaks and ARC
  • Next by Date: Re: Memory Leaks and ARC
  • Previous by thread: Re: Memory Leaks and ARC
  • Next by thread: Re: Memory Leaks and ARC
  • Index(es):
    • Date
    • Thread