Its recently occurred to me that an alarm can be triggered while some
really heavy going application has consumed most of the stack; the
problem being that the alarm handler of an app. doesn't have enough
stack remaining to complete successfully.

What would be ideal is a means to check how much stack is left prior to
performing the main processing of the alarm handler. This way, if there
is not enough stack free, I could re-schedule the alarm to occur in a
while and try again. I know about the SysGetStackInfo call but it does
not appear to be implemented in the PalmOS V2 debug rom.

So, with V2 of PalmOS, how does one manage the problem that I'm
describing? How have others got around managing alarm handlers in tight
stack situations?

--
Christopher Hunt
Class Action Pty. Ltd.

Are you a time zone traveler that owns a Palm(tm) connected organizer?
Check out http://www.classactionpl.com/TimeTraveler/index.htm

Reply via email to