[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Working With C++ Exceptions

If you turn on the Enable C++ Exceptions options in the C/C++ Language Panel, you may use the try and catch statements to perform exception handling. For more information on activating support for C++ exception handling, see "Controlling Exception Handling."

If exceptions are enabled, you can throw exceptions across any code that's compiled by the CodeWarrior C/C++ compiler. You cannot throw exceptions across the following:

If you throw an exception across one of these, the code calls terminate() and exits.

If you throw an exception when you're allocating a class object or an array of class objects, the code automatically destructs the partially constructed objects and de-allocates the memory for them.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000