views:

2363

answers:

1

my application is crashing very much how do i find the error through nszombie..?

could someone tell me step by step guide to use nszombie or valgrind tool to find memory error ,refrence error etc.

+2  A: 

It's a simple matter of setting an environment variable on your executable (NSZombieEnabled = YES), and then running/debugging your app as normal. If you message a zombie, your app will crash/break to debugger and NSLog a message for you.

For more information, check out this CocoaDev page: http://www.cocoadev.com/index.pl?NSZombieEnabled

Also, this process will become much easier with the release of 10.6 and the next versions of Xcode and Instruments. Just sayin'. =)

Dave DeLong
Totally agreed. The new Zombies instrument is very nice.
Quinn Taylor
Boo, meeeh, Boo, I'm a scary zombie!! Boo! NSZombie rules.
Time Machine