In my iPhone app, I am getting three strange warnings in the console at the very beginning of the app, before any code at all has been called:
*** __NSAutoreleaseNoPool(): Object 0x84be00 of class NSCFString autoreleased with no pool in place - just leaking
*** __NSAutoreleaseNoPool(): Object 0x84b000 of class NSCFString autoreleased with no pool in place - just leaking
*** __NSAutoreleaseNoPool(): Object 0x849c00 of class NSCFString autoreleased with no pool in place - just leaking
I use MBProgressHUD in a number of places to show progress indicators, which is what some of the other discussions of this problem have pointed to because it throws a new thread when displaying the progress indicator. But the strangest thing is that these seem to be thrown before even the beginning of my main() function:
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal;
}
When I put a breakpoint in my code on the very first NSAutoreleasePool
, before that line even runs I get this warning. What could be causing the error when, supposedly, I am not running any of my own code before this point?