Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!zephyr.ens.tek.com!tektronix!reed!glacier!busker!f20.n226.z1.FIDONET.ORG!Ross.Porter From: Ross.Porter@f20.n226.z1.FIDONET.ORG (Ross Porter) Newsgroups: comp.sys.mac.programmer Subject: VBLTask Message-ID: <649.2783DF09@busker.fidonet.org> Date: 28 Dec 90 11:43:11 GMT Sender: ufgate@busker.fidonet.org (newsout1.26) Organization: FidoNet node 1:226/20 - cmhGate UF Gateway, Columbus OH Lines: 45 Reply-To: ross@cattell.psych.upenn.edu I am looking for information and examples showing how to install VInstall tasks. The tasks I have in mind do not actually have anything to do with graphics or the monitor so VInstall examples are just fine. I have the following code which doesn't work, any suggestions are welcome. VBLTask myTask; int taskHappened; pascal TaskHandler() { SetupA5(); DoTasksWithNoMemoryMoveOrAllocate(); taskHappened = 1; myTask.vblCount = 60; RestoreA5(); } main() { Initialise(); myTask.vblAddr = TaskHandler; myTask.qType = vType; myTask.vblCount = 60; myTask.vblPhase = 0; VInstall(&myTask); EventLoopWithTasksRequiringMemoryMoveOrAllocateCheckingtaskHappened(); VRemove(&myTask); } Thanks in advance. Ross@cattell.psych.upenn.edu + Organization: University of Pennsylvania -- Ross Porter - via FidoNet node 1:105/14 UUCP: ...!{uunet!glacier, ..reed.bitnet}!busker!226!20!Ross.Porter INTERNET: Ross.Porter@f20.n226.z1.FIDONET.ORG