Re: Help tracking down a dangling pointer?
Re: Help tracking down a dangling pointer?
- Subject: Re: Help tracking down a dangling pointer?
- From: Greg Parker <email@hidden>
- Date: Thu, 10 Jun 2010 10:41:37 -0700
On Jun 10, 2010, at 9:00 AM, Sixten Otto wrote:
> It seems like what's happening is that there's some object someplace
> that's holding an unretained pointer to my entity, and trying to use
> it after it's gone. But the stack trace doesn't tell me much of
> anything (and I confess that I really don't grok assembly).
If you suspect a use-after-free bug somewhere, and NSZombie doesn't find it, then try this:
1. Verify that NSZombie is operating. Add `[[[[NSMutableString alloc] init] release] release]` to your code. Make sure NSZombie catches it.
2. If NSZombie doesn't help, try Guard Malloc. It's slow, but catches errors that NSZombie does not catch.
--
Greg Parker email@hidden Runtime Wrangler
_______________________________________________
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