• 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
Follow-up to "Sigbus on exit for NSStatusItem app"
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Follow-up to "Sigbus on exit for NSStatusItem app"


  • Subject: Follow-up to "Sigbus on exit for NSStatusItem app"
  • From: Mel Walker <email@hidden>
  • Date: Mon, 30 Jun 2003 15:57:51 -0600

On Monday, June 30, 2003, at 02:27 PM, email@hidden wrote:

I've got an application that I'm maintaining (I inherited it from
someone who no longer works here) that only displays a status item in
the menu. When it quits, I always get a signal 10 (SIGBUS).

I've fixed it, but the fix seems to violate all I know about Cocoa memory management. The documentation says that when I call NSStatusItem's statusItemWithLength: method, I need to retain the item. This is apparently correct, but if I eventually release that item, I will get a crash before the program terminates (but not in the release). Nothing in the documentation mentioned adding the status item to a system autorelease pool, but it looks like that's what happening.

--
Mel Walker <email@hidden>
Mel Walker <email@hidden>
_______________________________________________
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.

  • Prev by Date: Re: NSImage vs. NSBitmapImageRep color differences?
  • Next by Date: Getting the "real" file size
  • Previous by thread: Stumped by greyed out check syntax widget in PB.
  • Next by thread: Getting the "real" file size
  • Index(es):
    • Date
    • Thread