[comp.sys.mac.programmer] SystemTask

adail@pnet06.cts.com (Alan Dail) (07/05/88)

I was looking at the routines that are allowed to move memory and I noticed
that SystemTask is not listed.  I was supprised by this because systemTask
calls DA which are allowed to move memory.  I am writing an INIT that patches
SystemTask and needs to possibly allocate memory while running.  Is systemTask
allowed to move memory, and if not, can desk accessories move memory when they
get a accRun message, and if so, how is this resolved?

Thanks
Alan Dail

UUCP: {crash uunet}!pnet06!adail
ARPA: crash!pnet06!adail@nosc.mil
INET: adail@pnet06.cts.com

sinteur@uvabick.UUCP (John Sinteur) (07/07/88)

I am trying to write an INIT that installs a VBL task in the system heap,
but I can't get it to work. The VBL works fine when installed by an
application, but getting it in the system heap to stay there gives me a
headache.
Does any of you guys have some (sample) source that I can have a look at
that does just this (or something very similar)?

Thanks in advance...

-John Sinteur

wdh@well.UUCP (Bill Hofmann) (12/02/89)

>Now for the good news: if you're trying to patch _SystemTask, you can 
>probably get away with it, because I don't believe that _SystemTask is 
>called from within the ROM....

Um..._SystemTask is called by ModalDialog, at least.

-Bill