Re: Strange crash
Re: Strange crash
- Subject: Re: Strange crash
- From: j o a r <email@hidden>
- Date: Tue, 16 Jan 2007 22:55:51 +0100
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