Too much stuff on the stack. Two main causes:

1. Recursive functions, ie you function calls a function which calls your
function, effectivily calling a function from within the same that function,
ie:

        void my_func (char tem)
        {
                my_func;
        }

this would cause a stack overflow after X number of recursions as stuff gets
put on the stack but not removed.

2. Placing too many local variables on the stack ie:

        void my_func (char temp)
        {
                UInt32 my_array [25000]

                bang - stack overflow
        }       
        
The above would place 25000 * 4 bytes on the stack (but only while in the
function) - bang.

The above two situations together is even worse.

Rik

> -----Original Message-----
> From: Rajesh Patidar [SMTP:[EMAIL PROTECTED]]
> Sent: 03 October 2000 10:59
> To:   Palm Developer Forum
> Subject:      Overflowed Stack !
> 
> I am using ---
>     CodeWarrior Release 6
>     Sybase Ultralite Version 6.0.3
>     POSE  v 3.0a7
> I compiled and linked the application successfully.
> While running the application I am getting following error--
>     "The application has just overflowed the stack."
> What might be the cause?
> 
> 
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to unsubscribe,
> please see http://www.palmos.com/dev/tech/support/forums/

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to