Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!sri-spam!ames!ucbcad!ucbvax!decvax!decwrl!sqm.dec.com!jmsynge From: jmsynge@sqm.dec.com.UUCP Newsgroups: comp.sys.amiga Subject: Re: Task spawning difficulties Message-ID: <10349@decwrl.DEC.COM> Date: Thu, 11-Jun-87 16:11:13 EDT Article-I.D.: decwrl.10349 Posted: Thu Jun 11 16:11:13 1987 Date-Received: Sat, 13-Jun-87 11:02:14 EDT Sender: daemon@decwrl.DEC.COM Organization: Digital Equipment Corporation Lines: 33 tekig4!brianr writes: >static void Countemup() >{ > int i; > geta4(); > total = 300; > if (AllocSignal (KILLSIG) != KILLSIG) goto dumpout; > total = 0; > Wait (KILLFLAG); > for (i = 0; i < 20; i++) total += i; > >dumpout: > RemTask (0L); >} IF I remember correctly, RemTask() REQUIRES a valid pointer to a Task structure. Thus the call should be RemTask(FindTask(0L)) and FindTask() should be declared as struct Task *FindTask(). Why are you running the task at such a high priority? The manuals suggest not running at 20 or higher because certain system tasks (trackdisk) wouldn't be able to respond quickly enough to interrupts. Good luck, James Synge USENET: {decvax, ucbvax, allegra}!decwrl!sqm.dec.com!jmsynge ARPAnet: jmsynge%sqm.DEC@decwrl.DEC.COM #include "Ken Olsen can speak for Digital, not me!"