Charles Rezsonya [mailto:[EMAIL PROTECTED]] asked

> hello!
>
> all goes good,  i figured out the large character array thing,.. i made it
> non-reentrant,  (static) and it resolved that.  but why would 2400 char
> array 'cause my stack to blow?

Because the size of the stack is limited, and is set when your function is
invoked.  You could allocate and delete the array within your function if it
doesn't need to be global.

> BUT,...     i got this tick timeout thingy... how much time is a tick?  a
> second?  10th,  100th,  1000th?
>

Should be 10 mS, but according to something I gleaned from some header
files:

#if EMULATION_LEVEL == EMULATION_MAC
#define sysTicksPerSecond       60    // 60/sec on Macintosh
#elif EMULATION_LEVEL == EMULATION_NONE
#define sysTicksPerSecond       100     // 100/sec on Pilot
#elif EMULATION_LEVEL == EMULATION_WINDOWS
#define sysTicksPerSecond  1000 // 1000/sec on Windows PC

So, you really shouldn't count on the absolute value.  Use the
sysTicksPerSecond macro. It can change from target to target.

The stack answer came from general C knowlege, and the ticks answer came
from starting my 1st palm program last week.

HTH

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Joe Wronski      FitSense Technology           [EMAIL PROTECTED]
                                      Also at: [EMAIL PROTECTED]
http://www.fitsense.com       And: http://home.earthlink.net/~jwronski
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Reply via email to