Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!rutgers!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.programmer Subject: Re: Problems with changing display Message-ID: <21505@cbmvax.commodore.com> Date: 13 May 91 15:51:28 GMT References: <52749@apple.Apple.COM> Reply-To: peter@cbmvax.commodore.com (Peter Cherna) Organization: Commodore-Amiga, Inc. West Chester, PA. Lines: 27 In article <52749@apple.Apple.COM> farrier@Apple.COM (Cary Farrier) writes: >As near as I can figure, the system hasn't completed doing something >that has to do with menus and my window/screen, and I go and close the >screen and window before this gets completed. As long as you call ClearMenuStrip() before you call CloseWindow(), you'll be fine. Also, if you're sharing an IDCMP port between multiple windows, be sure you use CloseWindowSafely() (the code for which can be found in the CloseWindow() autodoc). >The problem is, when I call this code from where I handle >MENUPICK events, the system crashes every time. If I call the >*exact same code* from where I handle RAWKEY events, it all works >perfectly. If it's not the above, then you should scour your code for other differences. >-- Cary Peter -- Peter Cherna, Operating Systems Development Group, Commodore-Amiga, Inc. {uunet|rutgers}!cbmvax!peter peter@cbmvax.commodore.com My opinions do not necessarily represent the opinions of my employer. "If all you have is a hammer, everything looks like a nail."