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

can't get anything useful from NSZombie


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

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.
_______________________________________________
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: can't get anything useful from NSZombie
      • From: Ben Dougall <email@hidden>
  • Prev by Date: Re: Releasing a sub-view
  • Next by Date: Re: Cocoa Bindings, NSMatrix, setting programmatically
  • Previous by thread: RE: NSMutableDictionary <-- setter method
  • Next by thread: Re: can't get anything useful from NSZombie
  • Index(es):
    • Date
    • Thread