> Andreas, if you are using Constructor you can set the stack size in the
> "pref- Stack Size" field of the main resource window. You'll need to select
> "Generate pref Resource" first.
>
> Gavin.

Gavin, is it safe to increase the stack size? Could that cause other apps on
the Palm to crash? Would I have to write any  memory checking routines or
anything like that? I am a fairly novice programmer, I would not dare to mess
with memory management...


On the Palm Knowledge Base I found the suggestion to use the pragma
"stack_cleanup on" to avoid stack overflow (I am using CW 8 for Palm on
MacOS9). I tried it and it seemed to work somehow. I dont get the stack
overflow right away, but when I repeatedly call the offensive function the
error occurs nevertheless. I am not sure how this pragma thing works. Do I
have to put the pragma command in front of the code snippet that poses
problems? At the beginning of the function that causes the problem? At the
beginning of the function that calls the function that causes the problem? at
the beginning of the whole program? Do I have to it off again? If yes, where
in the code? There is also the option stack_cleanup reset, what does that
mean?

I hope you can help me! Thank you all!

Yours
Andreas.



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

Reply via email to