Re: Breakpoint when NSString gets set to a certain value?
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