• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Strange crash
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Strange crash
      • From: Vincent Le Normand <email@hidden>
References: 
 >Strange crash (From: Vincent Le Normand <email@hidden>)
 >Re: Strange crash (From: apparao <email@hidden>)

  • Prev by Date: Re: Preventing NSSlider bar from drawing
  • Next by Date: Core Data and "interactive" NSPopUpButtons
  • Previous by thread: Re: Strange crash
  • Next by thread: Re: Strange crash
  • Index(es):
    • Date
    • Thread