• 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: 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.

  • Follow-Ups:
    • RE: Random crash
      • From: "Jonathan E. Jackel" <email@hidden>
    • Re: Random crash
      • From: publiclook <email@hidden>
References: 
 >Re: Random crash (From: Laura-Jeanne Lanctôt <email@hidden>)

  • Prev by Date: Re: getting dragged file's name
  • Next by Date: Re: Objects return nil
  • Previous by thread: Re: Random crash
  • Next by thread: Re: Random crash
  • Index(es):
    • Date
    • Thread