• 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
Premature _NSAutoreleaseNoPool() warnings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Premature _NSAutoreleaseNoPool() warnings


  • Subject: Premature _NSAutoreleaseNoPool() warnings
  • From: email@hidden
  • Date: Tue, 2 Apr 2002 14:04:15 EST

I get these warnings upon running an application. The warnings are
associated with a method call that I make to a class object within the main()
function of the application.
The strange thing is that the alleged leaks occur after an instantiation
of an NSAutoreleasePool and before the use of the class method (in between
these two, there is nothing).
Also, when I remove the use of the class method, these warnings are no
more.

Here are the warnings:

2002-04-02 13:56:20.362 *** _NSAutoreleaseNoPool(): Object 0x10ac80 of class
NSPathStore2 autoreleased with no pool in place - just leaking
2002-04-02 13:56:20.427 *** _NSAutoreleaseNoPool(): Object 0x10f990 of class
NSPathStore2 autoreleased with no pool in place - just leaking
2002-04-02 13:56:20.427 *** _NSAutoreleaseNoPool(): Object 0x10fb30 of class
NSPathStore2 autoreleased with no pool in place - just leaking
2002-04-02 13:56:20.428 *** _NSAutoreleaseNoPool(): Object 0x10fe60 of class
NSCFArray autoreleased with no pool in place - just leaking
2002-04-02 13:56:20.449 *** _NSAutoreleaseNoPool(): Object 0x111880 of class
NSPathStore2 autoreleased with no pool in place - just leaking
2002-04-02 13:56:20.449 *** _NSAutoreleaseNoPool(): Object 0x111950 of class
NSPathStore2 autoreleased with no pool in place - just leaking

The class method is this:

+(AClass*) new
{
return [[AClass alloc] init];
}

The problem is not this particular method either. Other class methods cause
these warning as well.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Premature _NSAutoreleaseNoPool() warnings
      • From: Shawn Erickson <email@hidden>
  • Prev by Date: Re: Malloc()
  • Next by Date: C and objective C together
  • Previous by thread: Re: NSLocalizedString
  • Next by thread: Re: Premature _NSAutoreleaseNoPool() warnings
  • Index(es):
    • Date
    • Thread