• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSCFString autoreleased with no pool in place
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSCFString autoreleased with no pool in place


  • Subject: Re: NSCFString autoreleased with no pool in place
  • From: "Ken Ferry" <email@hidden>
  • Date: Tue, 19 Feb 2008 13:17:16 -0800

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@hidden> 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@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
>
>
> _______________________________________________
>
> 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
>
_______________________________________________

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

References: 
 >NSCFString autoreleased with no pool in place (From: Nick Rogers <email@hidden>)
 >Re: NSCFString autoreleased with no pool in place (From: Mike Abdullah <email@hidden>)

  • Prev by Date: Is there any way to track mouse Entered & mouse Exited without a window in Tiger?
  • Next by Date: Re: Custom TableCell
  • Previous by thread: Re: NSCFString autoreleased with no pool in place
  • Next by thread: QTMovieLayer?
  • Index(es):
    • Date
    • Thread