"No pool in place" error message--with only main thread
"No pool in place" error message--with only main thread
- Subject: "No pool in place" error message--with only main thread
- From: Mark Dawson <email@hidden>
- Date: Mon, 09 Jan 2006 16:15:53 -0800
I've inherited code that does the following:
NSCalendarDate *now = [NSCalendarDate calendarDate];
sprintf(logString, "[%s] %s", [[now descriptionWithCalendarFormat:@"%x"] UTF8String], theStr);
I get the following errors executing the above lines of code:
_NSAutoreleaseNoPool(): Object 0x42b3b0 of class NSCFTimeZone autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x458aa0 of class NSCalendarDate autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x458ac0 of class NSCFString autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x458ae0 of class NSCFString autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x41d700 of class NSCFString autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x41d340 of class NSCFString autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x4589e0 of class NSCFString autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x4589f0 of class NSCFString autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x458ca0 of class NSCFString autoreleased with no pool in place - just leaking
_NSAutoreleaseNoPool(): Object 0x458cc0 of class NSCFData autoreleased with no pool in place - just leaking
The code is in a .mm file, called from my main routine. I only have one thread. All references to this error that I could track down referenced issues with threads. Isn't my application object (NSApplication) supposed to provide a pool?
Thanks!
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden