Iphone: - [CFString release]: message sent to freed instance
the app I'm working on keeps crashing when launched on the iPhone but not on the simulator (although the warning is shown on launch without the symbolic malloc_error_break, but the app keeps running on the Sim)
I do not manually free any line, instead I use:
[[[NSString / NSMutableString alloc] init] autorelease];
(which I do all the time for other apps and never gave me problems)
Now when I set malloc_error_break as a breakpoint, I get:
2012-03-07 17:04:06.072 columns[15487:f803] *** -[CFString release]: message sent to deallocated instance 0x68c8210
With the transition of XCODE4 to:
int main(int argc, char *argv[])
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, @"AppDelegate"); >>> Thread 1
[pool release];
return retVal;
}
I also have NSZombieEnabled when run on btw simulator
If anyone can help me on how to debug this on XCODE 4 or point me to an online tutorial that would be greatly appreciated!
Hello
David
+3
source to share