Re: Programatically detect if any autorelease pool exists?
Re: Programatically detect if any autorelease pool exists?
- Subject: Re: Programatically detect if any autorelease pool exists?
- From: "Clark Cox" <email@hidden>
- Date: Tue, 5 Sep 2006 16:47:16 -0400
On 9/5/06, Sean McBride <email@hidden> wrote:
Hi all!
Is there a way to programatically detect if any autorelease pool exists?
Why? I'm helping with a cross-platform open source library (vtk, if
you're curious) and I'm having a problem with autorelease pools. The
library is C++ only (there are a few Obj-C++ classes, but that's an
internal implementation detail) and tends to be used in one of two ways:
in a cross-platform C++ app, or in a normal Cocoa application.
Currently, the library is creating its own NSAutoreleasePool then
releasing it later. This works great in the first case (since cross
platform C++ apps should not be concerned with the fact that the
library's implementation needs an autorelease pool present) but is
problematic in the second case.
Why is it problematic in the second case? That shouldn't cause any problems.
--
Clark S. Cox III
email@hidden
My CV/Resume:
http://homepage.mac.com/clarkcox3/files/Resume.pdf
http://homepage.mac.com/clarkcox3/files/Resume.html
_______________________________________________
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