Open topic with navigation
You can report memory leaks and memory overwrites in the log file by enabling the memory trace system, either by using the API or environment variables. If the memory trace system is enabled, the extended error codes for memory leaks and memory overwrites (
27, respectively) are reported in the log file when they are generated. The extended error codes are defined in
To report memory overwrites, you must also set a memory guard. See Specify a Memory Guard.
To enable or disable the memory trace system, call
out_of_process_memory_log() on a
Configuration object with the appropriate Boolean value. See The Configuration Class for more information.
To enable the memory trace system, add the
KVOOPMT environment variable, and set its value to
1. To disable the memory trace system, do not set the
KVOOPMT environment variable.