Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
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"



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.



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.