• 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: Breakpoint when NSString gets set to a certain value?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Breakpoint when NSString gets set to a certain value?


  • Subject: Re: Breakpoint when NSString gets set to a certain value?
  • From: Kyle Sluder <email@hidden>
  • Date: Sat, 20 Jul 2013 01:11:29 -0700

On Jul 20, 2013, at 1:04 AM, Jerry Krinock <email@hidden> wrote:

>
>> Have you tried running under the Allocations instrument?
>
> No, I'll study that.  I'd thought that Leaks would be better because it filters allocations to show only leaked allocations, whereas Allocations shows the whole fire-hose.

Allocations is more flexible than leaks. You can filter to just include objects that are live at process termination.


>
> You see two leaks, a __NSCFString whose value is "file://localhost/Applications/Safari.app/", and an NSURL.  In the 64 bytes of that NSURL, the 0x051bac30 in line 2 column 3 of those NSURL bytes looks like part of a pointer to that string, at 0x1051bac30, and presumably it's an instance variable.  But when I break on the designated initializer (thanks Kyle) -[NSURL initWithString:relativeToURL:] and log the two parameters, I never see anything like "file://localhost/Applications/Safari.app/".  Not so smart, after all :(

This might not even be a leak at all, but just a string that never gets released before your app gets terminated.

--Kyle Sluder

_______________________________________________

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: Breakpoint when NSString gets set to a certain value?
      • From: Jerry Krinock <email@hidden>
References: 
 >Breakpoint when NSString gets set to a certain value? (From: Jerry Krinock <email@hidden>)
 >Re: Breakpoint when NSString gets set to a certain value? (From: Kyle Sluder <email@hidden>)
 >Re: Breakpoint when NSString gets set to a certain value? (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Breakpoint when NSString gets set to a certain value?
  • Next by Date: Re: Threads
  • Previous by thread: Re: Breakpoint when NSString gets set to a certain value?
  • Next by thread: Re: Breakpoint when NSString gets set to a certain value?
  • Index(es):
    • Date
    • Thread