Premature _NSAutoreleaseNoPool() warnings
Premature _NSAutoreleaseNoPool() warnings
- Subject: Premature _NSAutoreleaseNoPool() warnings
- From: email@hidden
- Date: Tue, 2 Apr 2002 22:03:18 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.