This is a repost with the proper subject listed.
Sorry!
BTW: I have found the white paper on shared libraries
on the Palm WEB site.

>Date: 17 Apr 1999 11:39:33 -0700
>From: Jim Schram <[EMAIL PROTECTED]>
>Subject: Re: hooks entering and exiting sleep mode?

>At 9:37 AM -0700 1999/04/17, [EMAIL PROTECTED] wrote:
>>Is there a way, without hacking on the Palm OS code,  to get a
"notification"
>>(Application launch) when the system is about to enter "sleep mode" ?
>>Likewise, can I get a "notification" that the system has just went into
>>"running mode"?
>>
>>I will humbly accept pointers to documentation or faq's that address this
>>question.  I have tried the Palm published faq's and went through the
Palm
>>development documentation and at this point I'm starting to think it is
not
>>possible.

>You're more or less correct -- without hacking there is no way for an
>application to reliably detect the sleep/wake cycle. There is one for
shared
>libraries, but the issue there is the API can be called at interrupt time,
>which prevents your app from doing things like allocating memory or
calling
>user interface routines. So really it's of limited utility -- it was
designed
>for hardware-twiddling actions like powering off a serial port, for
example.

This kind of hook may work for me.  If I understand what your saying, I can
provide
an "interrupt handler" to do some work even though my application is not
running.  By placing
it in a shared library, the system will have access to the routine at all
times. I'm not
familiar with shared libraries on the Palm, but I will start my
investigation.  Any pointers on documentation about shared libraries and
the specific API you referred to would be appreciated.

Would I be able to send a "Launch Code" to my app from the interrupt?

Regards,
Dave








Reply via email to