From: Daniel R. <da...@ph...> - 2008-08-26 14:45:58
|
On Aug 26, 2008, at 5:36 AM, Gustav Munkby wrote: > The issue is that the finalizers are being executed in their own > thread, > and Cocoa needs autorelease pools to be established in each thread. > The finalizers are not executed after the application finishes, but > rather > during Haskell garbage collection. Ah. I hadn't realized there was a separate system thread for garbage collection (I thought it was only a lightweight thread). That's what I get for being new to HOC... > That is a completely different can-of-worms, which would indeed > solve this > issue. However, having both Haskell and Objective-C run their own > garbage > collectors would supposedly require even more "Arcane Magic". Indeed. Though from what I've been able to gather, it should be possible. I went ahead and applied your patch. Even if there was a way to install an autorelease pool in the garbage collector thread, it's probably not what I want, since the garbage collector thread never exits. -- Daniel |