Re: Crash in AppKit?
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