Help tracking down a dangling pointer?

2010-06-10 Thread Sixten Otto
There are many, many questions and articles and discussions out there about tracking down memory leaks, and finding over-release bugs. Neither of those, AFAICT, is what's happening to me. If there's a good article or Fine Manual out there that I should read, I haven't found it. In my iPhone app,

Re: Help tracking down a dangling pointer?

2010-06-10 Thread Greg Parker
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

Re: Help tracking down a dangling pointer?

2010-06-10 Thread Sixten Otto
On Thu, Jun 10, 2010 at 1:41 PM, Greg Parker gpar...@apple.com wrote: 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