> 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

Reply via email to