PathEngine home previous: Dynamic Linking on GCC Based Platformsnext: Linking with PathEngine Statically
Contents, Programmers Guide, Linking with the SDK, Memory Allocation Hooks

Memory Allocation Hooks

Internal allocations within PathEngine are all made through an allocation mechanism that allows allocations to be redirected to a custom allocator provided by the calling application.

This can be used for:

The 'MemoryBenchmark' example project shows a working example of this mechanism, with a custom allocator used in this case to record statistics about the amount of memory allocated.

See PathEngine_SetDefaultAllocator and DLLExport_SetDefaultAllocator for additional details and API reference.

Some example code for implementing PathEngine custom memory allocators can be found on the iAllocator API reference page.

Documentation for PathEngine release 6.00 - Copyright © 2002-2016 PathEnginenext: Linking with PathEngine Statically