[comp.sys.amiga.programmer] Why doesn't SetTaskPri

saunders@refine.enet.dec.com (Kyle Saunders) (03/14/91)

I have a clock program that works fine when I don't have the following line 
in it:
SetTaskPri(FindTask(NULL),5);

When that line is included, after an indeterminate amount of time, I get a
Sofware Error - Task Held requestor.  Until I click in the shell window
the program was started from, other tasks will work fine.  When I do, the 
mouse will freeze.  It is not a total lockup, 'cause when I insert disks,
there is disk activity.  I also do not see a Guru.

I was running ARP 39+, Dmouse 1.20, and VirusX 4.0.  The program was compiled
with Manx 3.6a using large code, large data, 32 bit integers, and floating
point.  Execution was started with ARP's arun.

Can anyone tell me what I am doing wrong?

Thanks,
- Kyle