Zombies don't get enabled
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