Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!mit-eddie!uw-beaver!tektronix!decvax!savax!elrond!anson From: anson@elrond.CalComp.COM (Ed Anson) Newsgroups: comp.sys.mac.programmer Subject: Re: WaitNextEvent problem Keywords: WaitNextEvent MultiFinder background Message-ID: <2460@elrond.CalComp.COM> Date: 18 Oct 88 15:03:28 GMT References: <159@s1.sys.uea.ac.uk> Reply-To: anson@elrond.UUCP () Organization: Calcomp Display Products Division, Hudson, NH, USA Lines: 20 In article <159@s1.sys.uea.ac.uk> jrk@s1.sys.uea.ac.uk (Richard Kennaway CMP RA) writes: > >I'm having a problem with WaitNextEvent in a background application. > >The problem is that switching between BackgroundClock and other applications >or DAs usually hangs the system when I switch back to BackgroundClock. > >Here's some pieces of the code. I only update the time once a second, so >to be friendly to applications, I call WNE with a 60-tick delay, in a loop Consult Tech Note #177. There is a bug in old versions of MultiFinder (such as you are using) which requires the delay to be 50 or less. Try reducing your delay. I hope this helps. -- ===================================================================== Ed Anson, Calcomp Display Products Division, Hudson NH 03051 (603) 885-8712, anson@elrond.CalComp.COM