• 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: NSApp with wrong _running count
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSApp with wrong _running count


  • Subject: Re: NSApp with wrong _running count
  • From: Michael Vannorsdel <email@hidden>
  • Date: Tue, 20 May 2008 12:10:58 -0600

When you mention running count, are you keeping an int or something to keep track of thread progress? If so remember to use atomic operations to update the count from multiple threads to prevent data corruption. As for NSAlert, a general rule is not to interact with the UI from any threads other than the main. Use performSelectorOnMainThread: to forward messages to the main thread.


On May 20, 2008, at 5:07 AM, Micha Fuhrmann wrote:

Hi everyone,

some users are reporting a crash at start. From the logs it seems that the sys is recognizing multiple running of the app, but from there I have no clue as to how to remedy.

Any help greatly appreciated.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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: NSApp with wrong _running count
      • From: Andrew Farmer <email@hidden>
References: 
 >NSApp with wrong _running count (From: Micha Fuhrmann <email@hidden>)

  • Prev by Date: Re: Programmatically get treecontroller selection
  • Next by Date: Re: NSViewController and Nib files
  • Previous by thread: Re: NSApp with wrong _running count
  • Next by thread: Re: NSApp with wrong _running count
  • Index(es):
    • Date
    • Thread