Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!apple!farrier From: farrier@Apple.COM (Cary Farrier) Newsgroups: comp.sys.amiga.programmer Subject: Problems with changing display Message-ID: <52749@apple.Apple.COM> Date: 11 May 91 04:57:27 GMT Organization: My Amiga 500 and I Lines: 20 I wrote a program that allows the user to switch between display resolutions (ala DPaint III), and the code works fine [applause]. 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. I handle all the IDCMP events in the same while() loop that gets all the messages waiting at my port, so it is basically just a different location in my switch() statement. 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. I'm not sure, though, because I do all my event handling after I have copied the IntuiMessage structure and replied to the message via ReplyMsg(), but maybe this isn't enough. Any and all help appreciated, thanks. -- Cary