Re: CFRunLookFindMode crash - solved
Re: CFRunLookFindMode crash - solved
- Subject: Re: CFRunLookFindMode crash - solved
- From: Martin Redington <email@hidden>
- Date: Fri, 17 Nov 2006 13:44:22 +0000
I'm using thread pooling now, which seems to work, although I had
some problems with that before.
In the meantime, I've also uncovered (with lots of help) the
underlying source of the problem - its a mach_port leakage issue -
the Apple (and other) sample code appears to leak mach_ports like a
sieve.
See http://www.cocoadev.com/index.pl?
DistributedObjectsForInterThreadCommsCrash for the gory details, and
a fix.
On 17 Nov 2006, at 06:59, Nir Soffer wrote:
On 17 Nov 2006, at 08:43, Nir Soffer wrote:
In my application, in normal conditions, extrapolating from some
test cases, it would take 50 hours for the user to hit this issue,
based on a new (shortlived) thread being created every five
minutes. Unfortunately, this is a real use case for the app. It
takes a lot less time if you have more than one worker thread
running simultaneously - this seems to flush the issue out of the
woodwork.
Why not keep one or few background thread for polling instead of
recreating them?
Best Regards,
Nir Soffer
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden