nszombie

How to use Zombie while debuging iphone application ??

How to use Zombie while debuging iphone application ?? ...

EXC_BAD_ACCESS - NSZombieEnabled is not showing anything.

I am getting an EXC_BAD_ACCESS when trying to push a view controller onto the navigation stack. When enabling NSZombies, I do not get any extra information for some reason, and I can't work out why. I'm pretty certain I don't need to use CFZombies. Here is the code that seems to be causing the issue: - (void)tableView:(UITableView *)tab...

iphone memory management strange issue

This is a piece of code I had written in xcode Foo * myFoo = [[Foo alloc] init] ; [myFoo release] ; [myFoo printMessage] ; If I am right, it should give a runtime error when printmessage function is called as myFoo gets deallocated by that time. But in xcode , the code is working and print message is getting called, is it a problem d...

Zombie messaged by [array count]

I have an ivar mutable array which i setup in viewDidLoad as follows: names = [NSMutableArray arrayWithCapacity:30]; [names addObject:@"Joe"]; [names addObject:@"Dom"]; [names addObject:@"Bob"]; Then in a later method, on tap of a button, i do the following, but the array appears to be overreleasing... with Zombie messaged: int r = a...

arrayWithContentsOfFile: results in crash.

I am creating an application and I get an EXC_BAD_ACCESS error. CODE @interface DNProjectsCategory : DNCategory { NSArray *projects; } @property(nonatomic, retain) NSArray *projects; @end And: @implementation DNProjectsCategory @synthesize projects; // MEM - (void)dealloc { [projects release]; [super dealloc]; } // INI...

NSZombieEnabled won't turn off

I have NSZombieEnabled to NO in my arguments. I am checking to see if it is enabled: if(getenv("NSZombieEnabled") || getenv("NSAutoreleaseFreedObjectCheckEnabled")) { NSLog(@"NSZombieEnabled/NSAutoreleaseFreedObjectCheckEnabled enabled!"); } My debugger says it is still enabled. Why? ...

Can't get Zombies to work in XCode

I'm trying to solve my first really hard EXC_BAD_ACCESS problem. I see from a lot of tutorials and blogs that I can use Zombies to help me figure out where I'm going wrong. But I don't think my zombies are working, and I'm DEFINATELY not getting anything useful out of the console. When I start the program I see this: This GDB was config...