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

Sigbus on exit for NSStatusItem app


  • Subject: Sigbus on exit for NSStatusItem app
  • From: Mel Walker <email@hidden>
  • Date: Mon, 30 Jun 2003 13:45:56 -0600

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).

It has a NSMenu that is reads from a nib file (IBOutlet), and it reads an NSImage from the resources. It creates an NSStatusItem and an NSTimer (so it knows when to quit).

From inside the timer callback it calls [NSApp terminate:self]. It also has a applicationWillTerminate: notification, where I do my cleanup (and it gets called).

It dies after the notification is called, down inside terminate:, inside releaseAppPools, which leads me to believe I'm double-releasing something, but I can't figure out what. It's not like I'm allocating that many things.

The Info.plist has LSUIElement and LSBackgroundOnly set to strings of 1.

(1) Is there something special I should watch out for in this kind of application, that I'm not doing?
(2) Is there a debugging program I should be running that would help me debug this?

Any suggestions would be appreciated.

--
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: Writing Files
  • Next by Date: Restrain size of NSWindow to NSToolbar only
  • Previous by thread: [ANN] UKPrefsPanel
  • Next by thread: Restrain size of NSWindow to NSToolbar only
  • Index(es):
    • Date
    • Thread