I use the function AlmSetProcAlarm to set a procedure alarm in an Application A.
If the user is executing another application B at the time the alarm is triggered, is it possible for the OS to call the procedure of A?
Yes, but you need to make sure that the code section that contains the code in application A is locked down in memory. This involved using an extra MemHandleLock on the code section in the application that has the alarm, and then protecting the database that holds those code resources. Also, when the OS calls A, A's code won't have access to global variables.
-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
