memory - iphone: -[CFString release]: message sent to deallocated instance -


an app i'm working on keeps crashing when run on iphone not on simulator (although warning shown when run without symbolic malloc_error_break, app keeps working on sim)

i'm not manually releasing string, instead, use:

[[[nsstring / nsmutablestring alloc] init] autorelease];  

(which time other apps , have never given me problem)

now when set malloc_error_break breakpoint get:

2012-03-07 17:04:06.072 columns[15487:f803] *** -[cfstring release]: message sent deallocated instance 0x68c8210 

with xcode4 jumping 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 have nszombieenabled when run on simulator btw

if can me on how debug on xcode 4 or point me tutorial online appreciated!

regards

david

remove autorelease nsstring methods , add them in until crashes (i guess answer now, so...)


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -