Skip navigation.
 
mlRe: NSCFString autoreleased with no pool in place
FROM : Ken Ferry
DATE : Tue Feb 19 22:17:16 2008

If you put a breakpoint on NSLog, you can find out where this is happening.

Common places where no pool has yet been created include +load methods
and code executed on secondary threads.

-Ken

On Feb 19, 2008 5:29 AM, Mike Abdullah <<email_removed>> wrote:
> So what you need to do is creating your own autorelease pool around
> the code that is resulting in an autoreleased string.
>
> NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
> // Do work here
> [pool release];
>
>
> On 19 Feb 2008, at 13:04, Nick Rogers wrote:
>
> > Hi,
> > I'm getting this on the console:
> > _NSAutoreleaseNoPool(): Object 0x18a850 of class NSCFString
> > autoreleased with no pool in place - just leaking
> > Otherwise the instructions after this are being executed accurately.
> >
> > Wishes,
> > Nick
> >
> >
> >
> > _______________________________________________
> >
> > Cocoa-dev mailing list (<email_removed>)
> >
> > 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:
> > http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
> >
> > This email sent to <email_removed>
>
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
>

Related mailsAuthorDate
mlNSCFString autoreleased with no pool in place Nick Rogers Feb 19, 14:04
mlRe: NSCFString autoreleased with no pool in place Mike Abdullah Feb 19, 14:29
mlRe: NSCFString autoreleased with no pool in place Ken Ferry Feb 19, 22:17