[comp.sys.mac.programmer] More...VBL Tasks in inits

bell@eniac.seas.upenn.edu (Mike Bell) (12/30/88)

  Thanks to everyone who responded to my question about using VBL tasks from
inits. I still have one question, though. There are two ways to install a VBL
task so it stays around;  

      1) Put it in the System Heap. APPLE warns against doing this several
         times in Inside Mac.

      2) Move bufptr down, and install the init above it in memory. This is
         the technique demonstrated in Scott Knaster's book. It requires
         assembly as well as Pascal, and it doesn't look very "by the book"
          (to me).


 My question is: Which is the preferred way to install the init? What are
the advantages of one method over another ?

If anyone would be willing to send source code for inits using either of these
two methods, I will summarize all responses and add them to our archive for
FTP.



			Thanks.

			Mike Bell
			bell@eniac.seas.upenn.edu



     _______________
    /  ___________  \
    | /           \ |
    | |   UPenn   | |
    | |    Mac    | | Administrator:          Mike Bell (bell@eniac)
    | |  Archives | |
    | \___________/ |  To access the Mac archives, issue the command:
    |       ______  |           cd ~mac/new
    |  ,   |______| |  For a listing of all available files, read:
    | @             |            filelist.tx
    \_______________/   Send any questions/suggestions about the archives to:
    |               |
    \_______________/                        mac@eniac

*****  Above instructions are valid for PennNet use only...all others use FTP