Re: Strange crash
Re: Strange crash
- Subject: Re: Strange crash
- From: Vincent Le Normand <email@hidden>
- Date: Wed, 17 Jan 2007 10:01:50 +0100
I have tested on an Intel Machine, and on a Power PC computer.
I just found and fix a very rare case where AppKit objects could be
manipulated from non main thread. I sent the build for testing. I
hope it's just that.
In fact i have 2 reports of these problems, both occuring on a macbook.
Thanks a lot,
Vincent
Le 16 janv. 07 à 22:55, j o a r a écrit :
On Jan 16, 2007, at 12:39 PM, apparao wrote:
Firstly Cocoa drawing code is not thread - safe. If possible
better to remove it run from the different thread. If you
requires, have a look at NSApplication's + (void)
detachDrawingThread:(SEL)selector toTarget:(id)target withObject:
(id)argument class method.
Actually, while there are a lot of thread un-safe parts in Cocoa,
basic drawing is not one of them. It goes without saying that there
are rules to abide by, but drawing from non-main threads is
officially allowed:
<http://developer.apple.com/documentation/Cocoa/Conceptual/
Multithreading/articles/CocoaSafety.html>
Vincent: This have the look of an issue caused by either incorrect
threading in your app, or by a bug in the frameworks. While both
are possible candidates, it's of course much more likely that the
problem is in your code. The crash report you included are from an
Intel machine - do you have one available for testing, or have you
only tried on PPC? Are you doing _any_ creation / manipulation of
AppKit objects in non-main threads?
j o a r
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden