• 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: App crashes on thread exit
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: App crashes on thread exit
      • From: Fabio Genoese <email@hidden>
References: 
 >Re: App crashes on thread exit (From: Fabio Genoese <email@hidden>)

  • Prev by Date: Scrolling TextViews
  • Next by Date: Re: App crashes on thread exit
  • Previous by thread: Re: App crashes on thread exit
  • Next by thread: Re: App crashes on thread exit
  • Index(es):
    • Date
    • Thread