Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!gatech!hubcap!mikeoro From: mikeoro@hubcap.clemson.edu (Michael K O'Rourke) Newsgroups: comp.sys.mac.programmer Subject: Installing a CODE as a VBL Message-ID: <5586@hubcap.clemson.edu> Date: 24 May 89 02:20:48 GMT Organization: Clemson University, Clemson, SC Lines: 15 I am trying to install a precompiled LSP unit as a VBL task. I compiled it as a CODE resource and all it does is a sysbeep(1). In the calling program i declare: HCode : Handle; HCode := GetResource('OUR ',100); { the type and number of the code rsrc} DetachResource(HCode); then i set the vblAddr field of the vblTask to be ProcPtr(HCode^). This crashes the machine every time. What's up? Michael O'Rourke