Re: Apple Events and automatic AutoReleasePool managment
Re: Apple Events and automatic AutoReleasePool managment
- Subject: Re: Apple Events and automatic AutoReleasePool managment
- From: Jens Alfke <email@hidden>
- Date: Mon, 17 Mar 2008 15:29:32 -0700
On 17 Mar '08, at 2:25 PM, Andy Klepack wrote:
In the case of C callbacks wouldn't it be the case that an
autorelease pool would exist (that of the main thread) but that it
would not be emptied once the callback completes? You wouldn't see
any warnings if that were the case.
You're right, that can happen. So I shouldn't have been so sanguine
about the pool. It's better to put it in (just two lines of code, and
not a performance hit unless your callback is being invoked incredibly
often.)
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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