|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
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."
| References: | |
| >Re: DebuggingCarbonLib assertion (From: Eric Schlegel <email@hidden>) |
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
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.