SEAn Chen wrote:
when i perform a hash function then the Emulator told
me that my app has overflowed the stack, the functions
currently using the stach are:[EMAIL PROTECTED](1372).......

so what is the total size of the palm os that one function
can use ?

Overflowing the stack usually means that you have called too many functions. Or sometimes it means you have got too many automatic variables, or very big ones, like this:

        Int32 myfunction (Int32 myarg)
        {
            Int32 bigoldarray[1000];
        }

That would be a bad idea on Palm OS, because the array will
be allocated on the stack, using 4 kilobytes of an already
very limited amount of space.  If you need an array inside a
function, it's probably best to allocate it from dynamic heap.

One very handy way to diagnose problems with stack is to
compile with debug symbols on.  Then the Emulator will show
you a stack backtrace that has function names in it instead
of "[EMAIL PROTECTED]" stuff.

  - Logan

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

Reply via email to