• 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
Re: Strange "autoreleased with no pool in place" message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange "autoreleased with no pool in place" message


  • Subject: Re: Strange "autoreleased with no pool in place" message
  • From: Jens Alfke <email@hidden>
  • Date: Sat, 17 Apr 2010 17:54:28 -0700

On Apr 17, 2010, at 12:39 PM, Alexander Bokovikov wrote:

>> Most likely you started an NSThread without putting an autorelease pool in the thread’s main function, or you got a callback on some thread and are making Cocoa calls on it without wrapping your callback in an autorelease pool.
>
> Start NSThread even BEFORE main() ? Is it possible?

I mean the initial function the thread runs. Nothing to do with the function called ‘main()’ that starts your process.
Autorelease pools are per-thread, so any thread that’s going to call Cocoa methods needs one.

—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Strange "autoreleased with no pool in place" message (From: Alexander Bokovikov <email@hidden>)
 >Re: Strange "autoreleased with no pool in place" message (From: Jens Alfke <email@hidden>)
 >Re: Strange "autoreleased with no pool in place" message (From: Alexander Bokovikov <email@hidden>)

  • Prev by Date: Re: Converting an afp:NSURL to a filesystem path - or - Ya can't get there from here...
  • Next by Date: Re: Parsing common elements between xml documents
  • Previous by thread: Re: Strange "autoreleased with no pool in place" message
  • Next by thread: Parsing common elements between xml documents
  • Index(es):
    • Date
    • Thread