PathEngine home previous: Include Directoriesnext: Building for Maximum Speed
Contents, Programmers Guide, Building the Source Code, Customising Memory Management

Customising Memory Management

See 'SDKRoot/instrumentation/MemoryTracking_OneObject.h' for an examples of custom memory allocation and deallocation.

This provides code for the memory tracking that is compiled in to the standard release build.

To customise memory allocation and deallocation simply add an object that overrides the global new and delete in the same way as in this example.
You will need to remove the memory tracking allocation, in this case, otherwise the compiler will complain about redefinition of these global operators (see Building for Maximum Speed).

Customisation of memory allocation is currently only supported when linking the run-time library as a dll, on platforms that support dll linkage.


Documentation for PathEngine release 5.29 - Copyright © 2002-2012 PathEnginenext: Building for Maximum Speed