Menu

How to for developers

Ondrej Spanel

How to adapt an application to be used with Man@log

Instead of using malloc / free / operator new / operator delete, redirect all memory allocations to a custom memory allocator. In case of ArmA 2 and derived games this is done by placing the Man@log.dll in the dll directory of the game and using command line -malloc=man@log.

Analyze a log

  • to analyze process memory dump run Man@lyzer.exe -load mana.log
  • make sure you have the correct pdb available in the same directory as Manalyzer.exe

Analyze a live application

  • use Man@log as a custom memory allocator by placing the Man@log.dll in the dll directory of the game and using command line -malloc=man@log
  • to analyze process memory run Man@lyzer.exe -dump

Additional Man@lyzer options

-no-stats Dump only events, no statistics

Detect memory overruns

To turn [Memory Overrun Detection] on, rename man@log.dll to man@log-check.dll or other name based on which detection options you want to use (multicall binary) and adjust the command-line launching the application accordingly. Then use the Man@lyzer as described in the Analyze a live application section.


Related

Wiki: Memory Overrun Detection