• 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: Crash in AppKit?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash in AppKit?


  • Subject: Re: Crash in AppKit?
  • From: Julian <email@hidden>
  • Date: Sun, 5 Jun 2005 02:35:00 -0400

You may want to try getting a handle on the textStorage itself and modify the value.

~J

On Jun 5, 2005, at 2:25 AM, Jason Staczek wrote:

A good lead, the thread safety angle.

The interesting thing is that I was getting the same crash before I tried a background thread to update the display. I was originally just running a timer off the main thread. Same problem. And I'm making no other access to that NSTextView. The other interesting thing is that the crash is in the Layout Manager, not the TextView itself.

So should I try wrapping that update in a critical section?

Jason

On Jun 4, 2005, at 10:31 PM, Julian wrote:


Yea, that came out wrong, what I meant to say was the timer seemingly was created off the main thread and is thus calling a function on the main thread improperly. I'm tired..

~J
On Jun 5, 2005, at 1:21 AM, j o a r wrote:



On 4 jun 2005, at 21.39, Julian wrote:



Since timers are threaded and you are accessing a GUI component from a different thread(aka thread 4 crashed)



Timers are not "threaded". They're executed in the thread where they were scheduled.

That said, I agree that Jason seem to be accessing things from a non-main thread in a way that's probably not supported.

j o a r









 _______________________________________________
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

References: 
 >Crash in AppKit? (From: Jason Staczek <email@hidden>)
 >Re: Crash in AppKit? (From: Julian <email@hidden>)
 >Re: Crash in AppKit? (From: j o a r <email@hidden>)
 >Re: Crash in AppKit? (From: Julian <email@hidden>)
 >Re: Crash in AppKit? (From: Jason Staczek <email@hidden>)

  • Prev by Date: Re: Crash in AppKit?
  • Next by Date: Re: Embedded tool in resources folder of bundle
  • Previous by thread: Re: Crash in AppKit?
  • Next by thread: Re: Crash in AppKit?
  • Index(es):
    • Date
    • Thread