RE: Random crash
RE: Random crash
- Subject: RE: Random crash
- From: "Jonathan E. Jackel" <email@hidden>
- Date: Fri, 8 Aug 2003 10:31:13 -0400
I find that debugging goes a lot more smoothly if I set a symbolic
breakpoint on -[NSException raise]. It catches all the exceptions that
NSZombie would catch and more, and it seems like zombies really slow things
down.
Jonathan
>
-----Original Message-----
>
From: email@hidden
>
[mailto:email@hidden]On Behalf Of Tom Sutcliffe
>
Sent: Thursday, August 07, 2003 9:17 PM
>
To: email@hidden
>
Subject: Re: Random crash
>
>
>
On Thursday, August 7, 2003, at 03:25 pm, Laura-Jeanne Lancttt wrote:
>
>
> Looks like an autorelease crash to me.
>
>
>
> The autorelease pool gets released [after the run loop cycle] and some
>
> object that does not exist gets released.
>
>
>
> They can be very hard to diagnose.
>
>
Check out NSDebug.h. Specifically, turn on NSZombieEnabled. I thought
>
autorelease was the work of the devil before I started using this, once
>
it's turned on you it is a great help. Specifically, being able to set
>
breakpoints whenever a method is called on a deallocated object instead
>
of the thing just crashing. I may be stating the obvious but being new
>
to gdb I've only just worked out how to get a break point whenever an
>
exception occurs (you get it for free in java...)!
>
>
Regards,
>
>
Tom
>
_______________________________________________
>
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.
_______________________________________________
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.