In article <92567@palm-dev-forum>, [EMAIL PROTECTED] says...
> 
> hello everyone,
> 
> What are the kown reasons for having the error "stack Overflow" ?
> This happens at different points in my function in different ROMs.
> 
> Does it have anything to with using Classes (Object Oriented)

The program stack holds your local variables.  The total stack size on 
Palm OS devices defaults to around 3.5K (more on some OS versions), so 
if you declare lots of large arrays or structures, its very easy to 
overflow the available stack.

I've recently posted about the CodeWarrior "warn_stack_usage" pragma, 
which can be useful for finding out what functions are using excessive 
stack space.  Classes can be a culprit, as they often are declared 
locally, you sometimes have lots of temporary class instances, and their 
size can be fairly large, depending on what members they have.
-- 
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Get help at http://palmoswerks.com/

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

Reply via email to