Debugging Memory Problems with MemoryScape : Chapter 2 Memory Tasks : Task 3: ­Setting MemoryScape Options : Advanced Options : Customizing Red Zones

Customizing Red Zones
You can customize Red Zones in several ways using the screen shown in Figure 49.
*
Buffer placement: the Red Zone buffer may be placed before, after, or both before and after the allocated block. Use caution when adding Red Zones both before and after your allocations, as this doubles the Red Zone overhead.
*
Buffer size: the default is the target machine page size, but you can modify this. The number of bytes you enter will be rounded to the nearest alignment specified by the machine.
*
You can elect not to use buffers. This setting will allow you to detect whether a block is used after having been freed, with much lower memory consumption.
*
*
Allocation alignment according to page end: the default alignment for this setting is determined by the target machine and capped at the machine’s page size. An alignment of 1 will cause the final start address to be the same as the provisional start address. Other alignment values should be to a power of 2.
 

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