i am apending the string, i running loop so many times app was crashed. it's show error message how i mange error message is malloc: * mmap(size=16777216) failed (error code=12) error: can't allocate region set a breakpoint in malloc_error_break to debug * Terminating app due to uncaught exception 'NSMallocException', reason: 'Out of memory. We suggest restarting the application. If you have an unsaved document, create a backup copy in Finder, then try to save.' and my code is ` NSMutableString * str = [NSMutableString stringWithCapacity:100000];
int i;
for(i=0;i<1000000;i++){
[str appendString:@"abcd"];
}`