Skip navigation.
 
mlNSAutoreleasePool and static data member constructors
FROM : Eyal Redler
DATE : Wed Oct 10 10:09:59 2007

Hi,

I have a C++/Objective-C application which has some constructors for 
static data members accessing autorelased Objective-C objects and I 
get messages like this in the console:
* _NSAutoreleaseNoPool(): Object 0xd06e70 of class NSCFString 
autoreleased with no pool in place - just leaking

Obviously, I need to setup an autorelase pool before all the static 
member construction. Is there a way to do this?

TIA


Eyal Redler
======================================
RedleX - Makers of Mellel
www.mellel.com
<email_removed>
<email_removed>
Work: 972-3-5226849
Mobile: 972-542-585545