• 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: can't get anything useful from NSZombie
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: can't get anything useful from NSZombie


  • Subject: Re: can't get anything useful from NSZombie
  • From: Ben Dougall <email@hidden>
  • Date: Wed, 28 Apr 2004 22:51:01 +0100

On Wednesday, April 28, 2004, at 07:23 pm, Ben Dougall wrote:

does anyone know how to find out a bit more about a premature object release using gdb and NSZombie?

without any extra debugging stuff in place, running the app via gdb, gdb tells me that my app's crashing on the last pool release line.

with the extra debugging stuff that i've found out about in the archives -- NSZombie variables set at the top of and within main() :

NSDebugEnabled = YES;
NSZombieEnabled = YES;
NSHangOnUncaughtException = YES;
NSDeallocateZombies = NO;

(will they then apply throughout the rest of the code, even calling code in other files etc?)
and various breakpoints set in the breakpoints :

-[_NSZombie retain]
-[_NSZombie release]
-[_NSZombie methodSignatureForSelector:]
-[_NSZombie respondsToSelector:]
-[_NSZombie class]

i find out exactly the same thing -- that my app is crashing on the last pool release line. how can i go about finding out a bit more, such as the class of object being prematurely release, which actual object it is etc?

gdb's output in the console doesn't help:

...
run
[Switching to process 7592 thread 0xb03]
Temporarily disabling shared library breakpoints: 1 2 3 4 5 6
Re-enabling shared library breakpoints: 1 2 3 4 5 6

then some red output from my app, followed by gdb's promt.

any info much appreciated.

thanks, ben.


so does using NSZombie not give any more info? am i asking about something that it doesn't do? it must give more than what i've managed to get so far. i haven't really got any extra info from it that i didn't have before using NSZombie. i'd really appreciate it if anyone could say how to get more info from the NSZombie via gdb.

quick recap: 99% sure i'm prematurely releasing an object -- crash on the end line [pool release]. have done the necessary things (i think) to enable / set up NSZombie. hasn't really revealed any further info, and i'd like to know how to get further info using NSZombie and gdb.

i know there's other ways to solve this, but i would like to know how to use NSZombies -- know what they can and can't do as i've never used / understood them.

thanks, ben.
_______________________________________________
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: 
 >can't get anything useful from NSZombie (From: Ben Dougall <email@hidden>)

  • Prev by Date: Re: Grabing Disk Information
  • Next by Date: Re: Panel items failing to draw
  • Previous by thread: can't get anything useful from NSZombie
  • Next by thread: Moving text-insertion point?
  • Index(es):
    • Date
    • Thread