Re: [Pyobjc-dev] threads + autoreleasepools
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2003-02-15 22:30:57
|
On Saturday, Feb 15, 2003, at 17:05 America/New_York, Just van Rossum wrote: > 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: > I think you might have to do: objc.recycle_autorelease_pool() ? But I agree with you, I think alloc/init for NSAutoreleasePool should work as we're all used to. -bob |