Follow-up to "Sigbus on exit for NSStatusItem app"
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.