Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!netnews.upenn.edu!cattell.psych.upenn.edu!ross From: ross@cattell.psych.upenn.edu (Ross Porter) Newsgroups: comp.sys.mac.programmer Subject: VBLTask Message-ID: <35194@netnews.upenn.edu> Date: 28 Dec 90 03:43:11 GMT Sender: news@netnews.upenn.edu Organization: University of Pennsylvania Lines: 36 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