Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!daver!kcdev!genco!rad From: rad@genco.uucp (Bob Daniel) Newsgroups: comp.sys.mac.programmer Subject: Re: Dialogs and crashes Keywords: dialog, mac, Message-ID: <34@genco.uucp> Date: 12 Sep 90 19:43:03 GMT References: <1990Sep11.132604.8985@cunixf.cc.columbia.edu> Reply-To: rad@genco. (Bob Daniel) Organization: Gentry & Assoc. Excelsior Springs, MO Lines: 18 In article <1990Sep11.132604.8985@cunixf.cc.columbia.edu> wlj1@cunixb.cc.columbia.edu (Wayne L Jebian) writes: > >my problem: I have four dialogs. I put them up with GetNewDialog() and >take them away with DisposDialog. After a few (maybe five) invocations >the machine crashes. > For modal dialogs, you need to save the current port before a dialog, then set the port back afterwards. GetPort(savePort) GetNewDialog() ... DisposDialog() SetPort(savePort) ______________ moof moof