At 06:58 PM 12/18/2000, Mitch Fawcett wrote:
>What has happened is, out of the blue, whenever I reset Poser I get an error
>message that I have just overflowed the stack. Admittedly there is a bug in
>my program, because I don't get the error after I delete my app from Poser.
>Normally I would set some breakpoints and gradually narrow down the source
>of the problem. The problem is, no matter where I set my breakpoint, it
>doesn't get encountered during the reset process. I've tried various lines
>in Start, Stop, PilotMain... no luck.

First off, if you want to set breakpoints in situations like this, I suggest you use 
PalmDebugger and forgo source level debugging. Other than that, I'd just point out 
that you get a reset launch code when the device is reset, and the same goes for the 
emulator. You've got limited stack space (more so than usual) when launched in this 
way, and you're also limited in terms of which APIs you're allowed to use. I suggest 
avoiding anything even remotely tricky in this launch code because an error in that 
code requires up-arrow reset to work around, and few users know about that. 
Furthermore, those that do often forget to reset again once they've removed the 
offending program, thereby unintentionally disabling beaming (library isn't loaded). I 
like to set a flag and then actually do the work the next time the app is launched 
normally.
--
Peter Epstein
Palm Inc. Developer


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

Reply via email to