• 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
Zombies don't get enabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Zombies don't get enabled


  • Subject: Zombies don't get enabled
  • From: "Giovanni Donelli" <email@hidden>
  • Date: Thu, 5 Jul 2007 19:49:22 +0200

Dear Folks,    I am debugging my app that has some sporadic crashes. it
sounded like a good idea to use Zombies to track the double release of an
object.

I look at different tutorials but I haven't figured out how to enable
zombies in xcode...

I pretty much followed what this tutorial said:
http://www.mactech.com/articles/mactech/Vol.21/21.04/DebuggingBugs/index.html

- I enabled NSZombieEnabled = YES, in the xcode's executable target, and
also set CFZombieLevel = 5

- I have also set to Use "debug" suffix when loading frameworks




Still don't get Zombies exceptions when I run this:



@implementation Controller


- (void)awakeFromNib

{

   NSLog(@"Zombies = %s", getenv("NSZombieEnabled") ); // I verified this
is set to YES

    NSMutableString *string = [[NSMutableString alloc] initWithString:
@"ciao"];

   [string release];

    NSMutableString *anotherString = [NSMutableString stringWithFormat:@"I'm
new!"];

   NSLog(@"string = %@", string);

}


@end


Any ideas?


Thank you!

Giovanni
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Zombies don't get enabled
      • From: "Sean McBride" <email@hidden>
  • Prev by Date: Re: Random numbers?
  • Next by Date: Re: Logging to text files
  • Previous by thread: Re: drag image for multi-cell selection
  • Next by thread: Re: Zombies don't get enabled
  • Index(es):
    • Date
    • Thread