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.
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.
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'. =)