• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
"No pool in place" error message--with only main thread
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

"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

  • Follow-Ups:
    • Re: "No pool in place" error message--with only main thread
      • From: Daniel Jalkut <email@hidden>
  • Prev by Date: tableview column binding to array index
  • Next by Date: Re: "No pool in place" error message--with only main thread
  • Previous by thread: tableview column binding to array index
  • Next by thread: Re: "No pool in place" error message--with only main thread
  • Index(es):
    • Date
    • Thread