Path: utzoo!utgpu!attcan!uunet!cs.utexas.edu!rutgers!gatech!hubcap!mikeoro From: mikeoro@hubcap.clemson.edu (Michael K O'Rourke) Newsgroups: comp.sys.mac.programmer Subject: Installing CODE as aVBL -- PART 2 Message-ID: <5595@hubcap.clemson.edu> Date: 24 May 89 23:36:35 GMT Organization: Clemson University, Clemson, SC Lines: 19 First, let me say thanx to all the people who responded. You all told me the same thing. That i needed to lock my CODE resource. Guess what? It already is locked... but that made me try something else. Here is the real problem that i found. If i put in a little while not button loop in below where i install the VBL, the program works! I wait and sure enough 3 seconds later (i set vblcount to 180) it beeps. Then i hit the button and the program exits. No loop, no go on the program. It dies and I get and call to MacsBug with a DeQueue error. What's that? Anyway, why would the machine crash if the installing program exits before the VBL task comes up to go? I tried allocating my VBLTask record as a handle and locking it in case the fact that it got disposed of was the problem, but this didn't help. Your help is graciously requested, Michael O'Rourke