Re: Breaking on runtime asserts
Re: Breaking on runtime asserts
- Subject: Re: Breaking on runtime asserts
- From: Finlay Dobbie <email@hidden>
- Date: Sun, 28 Jul 2002 13:21:33 +0100
On Sunday, July 28, 2002, at 03:23 AM, Andy Lee wrote:
At 12:14 AM +0200 7/28/02, David Remahl wrote:
Break on [NSException raise]:
(gdb) break -[NSException raise]
Yup, this should help. At the point where the exception is raised,
look at the object that is receiving the -count message. You probably
declared it to be an NSArray or something similar, but it got written
over by an NSImage. That's the object you need to add a -retain call
to. See the docs on memory management, in particular retain/release,
in your /Developer/Documentation directory. Understanding
retain/release is very important.
Also look at NSDebug.h in Foundation, specifically the stuff relating to
Zombie objects.
-- Finlay
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.