Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!uwm.edu!bionet!agate!linus!linus!mitre.org!gsm From: gsm@mitre.org (Gio Marzot) Newsgroups: comp.sys.mac.programmer Subject: Re: popup hiermenu in cdev bombs later... Message-ID: <125369@linus.mitre.org> Date: 4 Nov 90 20:53:29 GMT Sender: usenet@linus.mitre.org Organization: The MITRE Corporation Lines: 26 References:<1990Oct28.153715.29247@digibd.com> <1990Oct29.003508.8747@ux1.cso.uiuc.edu> (First post to net - please forgive any oddities) I have had a problem recently which is very similar to the one described in this thread.In short I am using the custom MDEF along with the TearOffMenus included with Think Pascal 3.0.1. and am further customizing the MDEF to support a sub-menu for one of its items. In the custom MDEF's ChooseItem routine I attempt to do this by calling PopUpMenuSelect. There is a brief flicker of the desired sub-menu then the dreaded error -108. At this point I tried the tactics outlined by Pete Resnick In article <1990Oct29.003508.8747@ux1.cso.uiuc.edu> 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. But to no avail. Any further insight by Pete or others is greatly appreciated. Thanks in advance. - GSM Responsibility for the views expressed here belongs only to myself and not to any organization.