Use guard blocks to detect writing beyond the limits of a memory block. To turn them on, either
With guards on, MemoryScape adds a small segment of memory before and after each block that you allocate. You can find corrupted memory blocks in two ways:
Use Red Zones to find both read and write memory access violations, notifying you immediately if your program oversteps the bounds of your allocated block.
With Red Zones on, a page of memory is placed either before or after your allocated block, and if your program tries to read or write in this zone, MemoryScape stops program execution and raises an event flag. Click on the event flag to see the event details.