Re: Random crash
Re: Random crash
- Subject: Re: Random crash
- From: Tom Sutcliffe <email@hidden>
- Date: Fri, 8 Aug 2003 02:16:50 +0100
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.