There isn't a CheckStack()-type function, per se, but it's relatively
easy for you to figure out on your own. One popular method is to capture
the address of a stack variable known to be very near the beginning of the
stack (e.g. the first local variable in PilotMain). The difference between
that address and the most recently allocated local (e.g. the last local
defined in the current scope) is approximately how much stack you have used.
As for how much is left, that kind of depends on the unit/OS on which you
are running, and other environmental factors. I don't remember the ballpark
figures, but I'm sure somebody will chime in.
> From: "Mike Davis" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Fri, 12 Nov 1999 15:52:00 -0800
> To: [EMAIL PROTECTED]
> Subject: (Fwd) Stack Check ?
>
> Is there a way to see (programatically) how much stack is
> used or remains at any point in an executing program?
>
--
Dan Rowley Innovative Computer Solutions
[EMAIL PROTECTED] "We Write Code"
PalmOS - Windows - MacOS - Windows CE - Newton