Path: utzoo!attcan!uunet!mailrus!uwm.edu!rpi!dali.cs.montana.edu!uakari.primate.wisc.edu!samsung!sdd.hp.com!hplabs!hpl-opus!hpnmdla!dan From: dan@hpnmdla.HP.COM (Dan Pleasant) Newsgroups: comp.sys.mac.programmer Subject: MF won't swap after calling ModalDialog? Message-ID: <450011@hpnmdla.HP.COM> Date: 11 Jul 90 15:43:24 GMT Organization: HP Network Measurements Div, Santa Rosa, CA Lines: 21 I've asked this question of MacDTS, but just at the moment I have a deadline approaching and I can't wait a week for an answer. I have a program that brings up a dialog (*not* a dBoxProc window) and calls ModalDialog to detect the user clicking one of several buttons. After the user's selection the window stays on the screen and the program goes into a "normal" event loop for a while -- it calls WaitNextEvent, not ModalDialog. This is supposed to allow the user to select an action and then swap the program into the background while the program does its thing. But Multifinder refuses to swap! If you patch out the call to ModalDialog, then Multifinder allows the swap. This is good for debugging but not so great for the user. Does anybody know how I can get Multifinder to allow the user to swap out the program under this condition? It sounds like the system is setting a flag somewhere in ModalDialog and forgetting to un-set it. Here's hoping somebody has noticed this problem before... Dan Pleasant