PathEngine home previous: Configurationsnext: Building in Visual Studio
Contents, Programmers Guide, Building the Source Code, Exception Handling

Exception Handling

Compiling code with exception handling adds some overhead in terms of both executable size and performance.

PathEngine uses a call-back based approach to error handling and does not throw or catch any exceptions explicitly, but we do include some STL headers, which, by default, do generally add a requirement for exception handling.

In many cases it's possible to turn off exception code in the STL, by adding a suitable preprocessor define.
(On the 'PC' platform we do this by _HAS_EXCEPTIONS to 0.)
Suitable compiler switches can then be added to turn off exception handling instrumentation.


Documentation for PathEngine release 5.17 - Copyright © 2002-2008 PathEnginenext: Building in Visual Studio