Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!uwm.edu!ux1.cso.uiuc.edu!pequod.cso.uiuc.edu!dorner From: dorner@pequod.cso.uiuc.edu (Steve Dorner) Newsgroups: comp.sys.mac.programmer Subject: popup menu cdef Message-ID: <1991Jan7.223500.22704@ux1.cso.uiuc.edu> Date: 7 Jan 91 22:35:00 GMT Sender: news@ux1.cso.uiuc.edu (News) Reply-To: dorner@pequod.cso.uiuc.edu (Steve Dorner) Organization: University of Illinois at Urbana-Champaign Lines: 29 I have a couple of popup font menus in one of my dialog boxes. I'm using the popup CDEF from the Communications Toolbox. The first time the dialog box is used (in standard GetNewDialog/ModalDialog/ DisposDialog fashion), it works JUST FINE. Subsequent uses of the dialog draw the popups fine, but cause crashes if the popups are pressed on (frequently also corrupting my application heap). I've commented out all the code that acts on what the user selects; all interaction with the popups are taking place solely through the dialog manager. I defined the popups with ResEdit (2.1), and they look fine in the DITL editor. Rezdet is happy with my application. The same behavior happens if I use the popupUseAddResMenu variation code or a static menu. The same behavior happens if I have the CTB installed in my system folder, or just copy the CDEF into my app. It happens whether or not I use my whizzy dialog filter. It happens whether or not I've called InitCRM and InitCTBUtilities. Traces in SADE of the control record and the associated menu handle look practically identical every time the dialog is up. This is on an 8meg SE/30. Does this sound familiar to anyone? -- Steve Dorner, U of Illinois Computing Services Office Internet: s-dorner@uiuc.edu UUCP: uunet!uiucuxc!uiuc.edu!s-dorner