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

Re: Premature _NSAutoreleaseNoPool() warnings


  • Subject: Re: Premature _NSAutoreleaseNoPool() warnings
  • From: Shawn Erickson <email@hidden>
  • Date: Tue, 2 Apr 2002 19:47:22 -0800

On Tuesday, April 2, 2002, at 11:04 AM, email@hidden wrote:

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.

How are you instantiating the NSAutoreleasePool? Can you show us more code?

Basically are you doing the following...?

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; << first thing in your main
... some cool stuff here ... (could release and create new pools in here as needed)
[pool release]; << last thing before you return from main

-Shawn

p.s. Anyone know what NSPathStore2 is/does?
_______________________________________________
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.

References: 
 >Premature _NSAutoreleaseNoPool() warnings (From: email@hidden)

  • Prev by Date: Re: Toplevel Objects in NIB files
  • Next by Date: Drawing a Grid in a TableView
  • Previous by thread: Premature _NSAutoreleaseNoPool() warnings
  • Next by thread: Premature _NSAutoreleaseNoPool() warnings
  • Index(es):
    • Date
    • Thread