> From: Åsa Godin [mailto:[EMAIL PROTECTED]]
> is it possible / recommended or not to use C++ exception handling
> with try/catch when developing for PalmOS?

It's possible but with some issues to be aware of.  First, of course
exceptions increase code size.  At least in CodeWarrior, using try/catch
does increase code size somewhat at the point of usage, plus it links with
several KB of runtime support code that otherwise would be omitted.  I'd
suggest studying the linker map file and maybe even disassembling some
try/catch code to understand what's going on.  If your program is small then
the code design benefits may not be worth the extra size, but the bigger the
program, the more you probably benefit from nice clean coding and error
handling.

Second, exceptions require global variables, so they can't be used when
running under the launch codes that don't set up globals.

-slj-


--
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