Its kind of interesting, but in terms of TSR-type programming all
programs installed on the Palm OS (r) are concurrently running in
a kind of TSR-type mode at all times.

And although we all refer to the Palm OS as a single task environment,
that is just a convenient way of looking at things.  Particularly because
of the very significant restrictions on any but the current foreground program.

Its not viable to have several programs running in heavy duty processing
mode.  In fact the restrictions placed on this, especially the prohibition
against globals, basically prevent it.  

However, it is relatively easy (???) to have your program perform some
lightweight processing in its "TSR-type mode" provided you can do it
within all the restrictions!   After all that's how "FIND" works!

I suspect several of you have very specific opinions on this subject,
but my realization of this TSR-mode concept in Palm OS programming
was an important milestone in understanding how to develop
complex software for the Palm OS.

Roger Stringer
Marietta Systems, Inc
Creators of the Marietta PDE (tm) RAD software for the Palm OS (r)


>Subject: Re: Create a Task/ Thread
>From: Adam Wozniak <[EMAIL PROTECTED]>
>Date: Mon, 12 Jun 2000 10:20:32 -0700
>X-Message-Number: 43

>Gil Drori wrote:

>> Any idea how to create a TSR task ? (Terminate and Stay Resident)

>The closest PalmOS equivalent is called a "Hack".  It is a piece of code which
>patches/overrides a trap/systemfunction and then returns control to the OS.
>From then on, any time that trap/systemfunction is called by any program, the
>Hack does it's thing.

>Look in the knowledge base for "Hack" and "HackMaster".

-----------------------------------------------------


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to