Crash on NSMenu
Crash on NSMenu
- Subject: Crash on NSMenu
- From: Jean Bovet <email@hidden>
- Date: Sun, 7 Dec 2003 00:42:27 +0100
I have a crash with my application in the following way: when I create
a document, I add new menu items to the main menu bar and when the last
document is closed, I remove these items. Sometimes (and that's the
problem) , when I click in the menu bar after removing (or adding) menu
items, the app crash as shown in the crash log below:
Thread 0 Crashed:
#0 0x90831550 in _class_lookupMethodAndLoadCache
(_class_lookupMethodAndLoadCache + 112)
#1 0x908312d8 in objc_msgSend (objc_msgSend + 184)
#2 0x92de78fc in -[NSMenu _enableItems] (-[NSMenu _enableItems] +
312)
#3 0x92e06a64 in -[NSMenu(carbonMenu_Private) _recursiveEnableItems]
(-[NSMenu(carbonMenu_Private) _recursiveEnableItems] + 36)
#4 0x92e06ab8 in -[NSMenu(carbonMenu_Private) _recursiveEnableItems]
(-[NSMenu(carbonMenu_Private) _recursiveEnableItems] + 120)
#5 0x92e2ecc0 in _NSHandleCarbonMenuEvent (_NSHandleCarbonMenuEvent
+ 140)
#6 0x92dd2dd0 in _DPSNextEvent (_DPSNextEvent + 1232)
#7 0x92de93fc in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] (-[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:] + 116)
#8 0x92dfd730 in -[NSApplication run] (-[NSApplication run] + 540)
#9 0x92eb9a1c in NSApplicationMain (NSApplicationMain + 464)
#10 0x0006c7ec in main (main + 16)
#11 0x000028dc in _start (crt.c:267)
#12 0x0000275c in start (start + 48)
Does someone know if there is know issue about that ?
Best regards,
Jean Bovet
_______________________________________________
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.