Debugging Memory Problems with MemoryScape : Chapter 5 MemoryScape Scripting : event_action Command-Line Option

event_action Command-Line Option
The –event_action command-line option is the most complex of the command line option. Its format is as follows:
–event_action “event=action list
Specifies one or more actions that the script should perform if an event occurs. The “event=action list” consists of comma-separated set event=action pairs. For example:
"alloc_null=save_memory_debugging_file, \
dealloc_notification=list_allocations"
event can be:
A block is being freed, and the address is not at the beginning of the block.
The malloc() function returned a null block.
bad_alignment_­argument
The block returned by the malloc library is not aligned on a byte boundary required by your operating system. The heap may be corrupted. (This is not a program error.)
Allocator returned a block already in use. The heap may be corrupted.
Guard corruption was detected when program deallocated a block.
realloc_not_­allocated
Program attempted to reallocate a block that was not allocated.
Program attempted to access memory beyond end of allocated block.
Program attempted to access memory before start of allocated block.
Program attempted to access block after it was deallocated.
Program attempted to access memory beyondend of deallocated block.
Program attempted to access memory before start of deallocated block.
termination_­notification
action is as follows:
save_html_heap_­status_source_­view
save_memory_­debugging_file
Save a memory debugging file; you can reload this file at a later time.

Rogue Wave Software, Inc.
Voice: (303) 473-9118
rwonlinedocs@roguewave.com