Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: DebuggingCarbonLib assertion
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DebuggingCarbonLib assertion



On Friday, June 29, 2001, at 09:52 PM, Eric Schlegel wrote:


I just began using DebuggingCarbonLib 1.3.1 in an attempt to track down a
bug in my app, and have been running into the following assertion in my
code. I can't seem to figure out what it's referring to here:

Assert failed: CarbonLib (Menu Manager): inItem > 0
exception_GetMenuItemHierarchicalMenu_CantGetSubmenuForTitle
file: CarbonLibMenus.cp
line: 2080

Are you calling GetMenuItemHierarchicalMenu yourself? If so, you are passing 0 for the item parameter. 0 indicates the menu title, and the menu title does not have a submenu; only menu items (with index 1 or greater) have submenus. Thus the assertion, "can't get the submenu of the menu title."

No, I'm not calling GetMenuItemHierarchicalMenu. I was calling InsertMenuItem("\psomething",0); on a menu that's on the hierarchical menu list.


References: 
 >Re: DebuggingCarbonLib assertion (From: Eric Schlegel <email@hidden>)



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.