[Pyobjc-dev] Re: Test Case and Resolution for: stumped by a new round of NSBundle crashers
Brought to you by:
ronaldoussoren
From: Bob I. <bo...@re...> - 2005-04-11 08:04:40
|
On Apr 10, 2005, at 7:16 PM, Stuart Halloway wrote: > Resolution Summary: > 1. Don't load plugins from UI event handlers--do it earlier. I hope > this wasn't known to be trivially true, otherwise I have had you > chasing a ghost today. > 2. The new objc.removeAutoreleasePool appears not to matter--at least > as I used it. If you load the plugin early enough, you're fine, even > without calling removeAutoreleasePool. If you load the plugin during > UI time, you're screwed, even if you then call removeAutoreleasePool. Thanks for tracking this down. I had a feeling that it was time dependent, and I had thought that it was because of the NSAutoreleasePool since that will screw up the stack.. but I guess that the worst it can do is make zombie objects, not free too many. I'm pretty sure I've seen this bug before, intermittently, when writing inject plugins. When I get some time I'll see if I can find out why it's happening, though that's obviously hard because I don't have access to the source code for Foundation :) -bob |