is there a call that you can have at runtime to determine how much stack is
left? and or any other memory aspects?
-----Original Message-----
From: Mike Davis <[EMAIL PROTECTED]>
To: Palm Developer Forum <[EMAIL PROTECTED]>
Date: Thursday, April 20, 2000 11:26 PM
Subject: Re: stack overflows
> I am not an expert programmer. But I would have thought that the two
> "instances" of the program (the NormalLunch and the DisplayAlarm)
> would be using a different stack and even if they weren't it is only 8
> levels deep. I would have thought C and PalmOS could handle at least
> 50.
I have a program that is very sensitive to stack overflow but I know
I am at least 15 to 20 levels of function calls. Plus I have a bit
of local veriable space in these functions also. I have had to move
some local variables to global space and had to put a limit on
recursive calls.
8 sounds a bit small.
> How big is the stack anyway?
>
> How deep can I __safely__ nest my function calls (assuming I stick to
> passing only one or two pointers)? Maybe my overloading the stack is
> what is causing all the API crashes I am having lately (see previous
> messages).
>
>
>
>
>
> derik
>
> email: [EMAIL PROTECTED]
>
> WWW: http://www.pobox.com/~derik
>
>
> --
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palm.com/devzone/mailinglists.html
>
--
-----------------------------------------------------------------
Discussion Group: http://www.halcyon.com/ipscone/wwwboard/
Protect your constitutional rights. Your favorite one may be next!
-----------------------------------------------------------------
--
For information on using the Palm Developer Forums, or to unsubscribe,
please see http://www.palm.com/devzone/mailinglists.html
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html