bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSAutoreleasePool changes and threads


From: Enrico Sersale
Subject: Re: NSAutoreleasePool changes and threads
Date: Sun, 06 Mar 2005 19:57:12 +0200

On 2005-03-06 17:20:40 +0200 Richard Frith-Macdonald <richard@brainstorm.co.uk> 
wrote:


On 6 Mar 2005, at 13:26, Enrico Sersale wrote:


I've just updated from CVS and I'm getting some errors and crashes with apps using threads. This is visible in GWorkspace and in older versions of GNUMail. I've not other examples.

I've tried to change the code so that an autoreleasepool in the process of being deallocated remains present as the current autorelease pool (if it was the current pool), while still making sure that objects added to it while it is being deallocated do not get leaked.

I can't see why there should be any odd thread related problems ... unless it's to do with the current pool for the thread being deallocated on thread termination, and objects added to the pool during deallocation, which would previously have been quietly leaked, causing a problem in some way.

Please try the current code from CVS and see if it still causes problems ... if it does, please could you try to find a sequence of operations in GWorkspace which reliably cause the problem ... I'm not familiar with what might cause threading problems in the app ... so the fact that it's working for me might just be that I'm not trying out the correct sequence of operations.

Now it works perfectly :-) Thank you.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]