At 11:44 AM 12/1/2003, Matthew Henry wrote:
Even in C++, you can't really use try and catch or you will overload the
first segment.
The only reasonable solution, in C or C++, is to check return codes.
IMHO, of course.

With CW, you overload the data segment, not the first code segment. It's possible to overload the first code segment when using lots of templates or "inline"-but-not-inlined functions. Expanded mode in CodeWarrior is designed to give you an extra data segment for C++ virtual tables and exception tables, making it easier to use those features in big programs.


I'll also note that the ErrTry/ErrThrow/ErrCatch routines don't catch system errors, only ones thrown by your own code.

--
Ben Combee <[EMAIL PROTECTED]>
CodeWarrior for Palm OS technical lead
Palm OS programming help @ www.palmoswerks.com



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

Reply via email to