ross@cattell.psych.upenn.edu (Ross Porter) (12/28/90)
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
Ross.Porter@f20.n226.z1.FIDONET.ORG (Ross Porter) (12/28/90)
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