I added #pragma warn_stack_usage on top of my program and see who's the possible offender. I found out that "PilotMain uses 812 bytes of stack". Is it a bad thing??
Yes. You've only got about 4K of stack in normal situations, and when sublaunched, you've got a lot less, depending on the current app. The likely cause is large arrays or structures declared in PilotMain. Anything more than a few bytes should be allocated dynamically using MemPtrNew.
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/