Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!purdue!ames!sun-barr!male!pitstop!sundc!seismo!uunet!mcvax!ukc!strath-cs!glasgow!dunlop From: dunlop@cs.glasgow.ac.uk (Mark Dunlop) Newsgroups: comp.sys.mac.programmer Subject: WaitNextEvent problem Keywords: WaitNextEvent MultiFinder SystemTask Message-ID: <2864@crete.cs.glasgow.ac.uk> Date: 28 Apr 89 11:30:52 GMT Organization: Computing Sci, Glasgow Univ, Scotland Lines: 37 I have written a small application which converts Sun rasters into PICT format. The application does not require any NULL events, as it only does a conversion upon command. I thought to myself, let's be MultiFinder friendly so I used WaitNextEvent, when I ran my program the clocks in the menu bar stopped! I tried using SuperClock, and the Moire screensavers clock - both stopped! Both INIT/CDEV clocks which run in the background and usually behave very well. I then brought up a DA (under MultiFinder) selected my application and the clock started to work again. This solution did not work by opening a background application (e.g. Telnet). I recon that if there is not a desk accessory running MultiFinder decides there is no need to call SystemTask and therefor the clock stops. I have tested the problem on two configurations... 1M Mac Plus running MultiFinder 6.0.1 Finder B1-6.1 System B1-6.0.2 4M Mac IIx running MultiFinder 6.0.3 Finder B1-6.0.3 System B1-6.0.3 The call was -> WaitNextEvent(EveryEvent,TheEvent,-1,nil); I later changed this to WaitNextEvent(EveryEvent,TheEvent,600,nil) and the clock changed once every 10 seconds. Any help on what's going wrong? I just tried to be MultiFinder Friendly and time stands still.... Mark Dunlop dunlop@cs.glasgow.ac.uk dunlop@uk.ac.glasgow.cs !mcvax!ukc!uk.ac.glasgow.cs!dunlop