• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Random crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Random crash (From: Tom Sutcliffe <email@hidden>)

  • Prev by Date: Re: am i loading this pdf data correctly or not?
  • Next by Date: [beginner cocoa] cocoa tutorial (Currency Converter) won't build.
  • Previous by thread: Re: Random crash
  • Next by thread: Re: am i loading this pdf data correctly or not?
  • Index(es):
    • Date
    • Thread