Re: RS: autorelease with no pool in place
Re: RS: autorelease with no pool in place
- Subject: Re: RS: autorelease with no pool in place
- From: Chris Hanson <email@hidden>
- Date: Sat, 12 May 2007 14:17:43 -0700
On May 12, 2007, at 2:08 PM, Roland Silver wrote:
I create an autorelease pool called "mainPool" as early as possible
in my project, and release it as late as possible.
Yet I'm getting a bunch of error messages like
(): Object 0x38f240 of class NSCFArray autoreleased with no pool in
place - just leaking
Apparently object 0x38f240 is created before mainPool, but where?
and how could I deal with the problem?
Do you have any +load methods in your codebase? How about statically-
allocated C++ objects that wind up invoking Objective-C code from
their constructors? Or a library initialization routine?
-- Chris
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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