Path: utzoo!attcan!uunet!digibd!merlyn From: merlyn@digibd.com (Brian Westley (Merlyn LeRoy)) Newsgroups: comp.sys.mac.programmer Subject: Re: popup hiermenu in cdev bombs later... Message-ID: <1990Nov5.152003.28647@digibd.com> Date: 5 Nov 90 15:20:03 GMT References: <125369@linus.mitre.org> Organization: DigiBoard Incorporated, St. Louis Park, MN Lines: 21 [ following up my own article.. ] [ heir popup menu in cdev corrupts the menu structure ] resnick@cogsci.uiuc.edu (Pete Resnick) writes: > 1. Set the "System Heap" attribute on the menu if you are reading it > in from a resouce. I happen to have also check "Preload", but that > depends on what you do. > 2. Lock the MenuHandle before calling PopUpMenuSelect. I don't know > why this should help in the least. PopUpMenuSelect should know enough > to not move memory while the handle is unlocked, but I have found > circumstantial evidence to the contrary. I have tried all combinations of system heap/locked/preload, with no success. I looked at moire, which also uses a popup heir menu in a cdev, and noticed that it *didn't use menu resources*. It used strings which were made into menus with NewMenu(). I changed to this method, and the crashes stopped. ZoomBar 1.7 is on AppleLink and I will be submitting it to comp.binaries.mac today. Thanks to everyone. --- Merlyn LeRoy