• 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: Breaking on runtime asserts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Breaking on runtime asserts (From: Andy Lee <email@hidden>)

  • Prev by Date: Re: Serial number verification / obfuscation (was: Re: Hiding
  • Next by Date: Re: NSTableView rows and delete key
  • Previous by thread: Re: Breaking on runtime asserts
  • Next by thread: NSDateFormatter problem with %p
  • Index(es):
    • Date
    • Thread