static objects "autoreleased with no pool in place - just leaking"
static objects "autoreleased with no pool in place - just leaking"
- Subject: static objects "autoreleased with no pool in place - just leaking"
- From: m <email@hidden>
- Date: Thu, 12 Feb 2004 22:05:49 -0800
I have a number of places where I have static instances of things like
NSStrings. These appear to be causing warnings like this:
*** _NSAutoreleaseNoPool(): Object 0x1136ff0 of class NSCFString
autoreleased with no pool in place - just leaking
I know that objects instantiated without an autorelease pool in place
will trigger this warning, but there must be a better way to handle
this than instantiating a static autorelease pool in every source file
that has static objects in it.
Note that instantiating an autorelease pool in main() doesn't help
since statics are setup before main() is called.
_murat
_______________________________________________
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.