Thomas Damme wrote: > does somebody know how I can increase the number of possible sub-calls of > functions? > By now one of my programs has too many of them since I use a special > framework that calls a Table-Function, which has many sub-calls too. The > program often crashes on very clean code-lines. > If nothing helps, I will have to rewrite my framework but I wanted to ask if > somebody has another solution..
Run your program on the emulator (not the simulator). It will tell you if the stack overflows. Actually, it will tell you BEFORE the stack overflows if I remember right. If your program has already crashed before you got the warning, then you know a stack overflow is not the cause, etc., etc. If that's not convenient, you can also call SysGetStackInfo() to find out if the stack has been overflowed at any point. Also, I haven't tried it, but I *believe* there is a way you can specify in the application's preferences (in the PRC, not in the System Preferences) the minimum stack size. I believe you also should be able to increase the size of the stack by allocating some memory and messing with some registers, then putting it back before your app exits. :-) (You could wrap your app's whole main loop with some function that does this.) - Logan -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
