Re: App crashes on thread exit
Re: App crashes on thread exit
- Subject: Re: App crashes on thread exit
- From: Shawn Erickson <email@hidden>
- Date: Sat, 12 Oct 2002 10:01:30 -0700
On Saturday, October 12, 2002, at 09:29 AM, Fabio Genoese wrote:
Am Samstag, 12.10.02 um 18:02 Uhr schrieb Cameron Hayne:
So this means that your updating of the GUI happens in the worker
thread,
not the main (AppKit) thread as you had thought.
Usually you just set a flag in the worker thread and check this flag
in the
main thread (protected with NSLock) or else set up more sophisticated
communication between threads. But, assuming you are targeting
Jaguar, maybe
you could use the new performSelectorOnMainThread method (see
NSObject or
the Foundation release notes).
Hi,
thanks for your reply - I'm using performSelectorOnMainThread to
update the UI now. However, it still crashes (same error log). It must
be something else. *shrug*
Are you utilizing a run loop in your secondary thread?
Some source would help us help you.
-Shawn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.