[Pyobjc-dev] threads + autoreleasepools
Brought to you by:
ronaldoussoren
From: Just v. R. <ju...@le...> - 2003-02-15 22:05:29
|
When I use Cocoa functions in a different thread, I get lots of warnings like this: 2003-02-15 22:57:19.522 python2.3[9157] *** _NSAutoreleaseNoPool(): Object 0x2878170 of class NSInvocation autoreleased with no pool in place - just leaking However, creating an NSAutoreleasePool manually doesn't work the way I think it should work: >>> NSAutoreleasePool.alloc().init() Traceback (most recent call last): File "<stdin>", line 1, in ? ValueError: NSInvalidArgumentException - *** -[NSAutoreleasePool retain]: Cannot retain an autorelease pool >>> Any wisdom? Or is it a bug? Just |