Документ взят из кэша поисковой машины. Адрес оригинального документа : http://rtm-cs.sinp.msu.ru/manual/mico/doc/node61.html
Дата изменения: Mon Jun 7 21:54:59 1999
Дата индексирования: Mon Oct 1 21:22:45 2012
Кодировка:
Exceptions next up previous
Next: CORBA Compliant Exception Handling Up: C++ mapping Previous: Modules

Exceptions

Due to the limited support for exceptions in earlier versions of the GNU C++ compiler (namely gcc 2.7.2) MICO supports several kinds of exception handling:

Two common problems with exception handling are ``catching by base classes'' and ``exceptions in shared libraries'':

Which kind of exception handling is used is determined by the capabilities of the C++ compiler and command line options passed to the configure script. By default CORBA compliant exception handling will be selected if the C++ compiler supports catching by base classes, otherwise MICO specific exception handling is selected if the compiler supports exception handling at all. If exceptions in shared libraries do not work then no exception handling is selected for code in shared libraries. You can enforce MICO specific exception handling by specifying -disable-std-eh as a command line option to configure. You can disable exception handling by specifying -disable-except as a command line option to configure.

You can find out about the exception handling support of your MICO binaries by running the IDL-Compiler with the -config command line option:

  $ idl --config
  MICO version: 2.2.7
  supported CORBA version: 2.3
  exceptions: CORBA compliant
  modules are mapped to: namespaces
  STL is: miniSTL
  SSL support: no
  loadable modules: yes

The following sections go into detail about each of the exception handling modes supported by MICO.




next up previous
Next: CORBA Compliant Exception Handling Up: C++ mapping Previous: Modules

Arno Puder
Mon Jun 7 10:53:40 PDT 1999