Re: Premature _NSAutoreleaseNoPool() warnings
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.