Main Page   Reference Manual   Namespace List   Compound List   Namespace Members   Compound Members   File Members  

Collaboration diagram for –enable-magic (CWDEBUG_MAGIC):
Description

Adds a magic number to the beginning and the end of each allocated memory block, and checks this when the block is deleted or reallocated.

When to use it

In general, this should be used as long as you are developing a program, unless you want to do speed tests.

Configure option

This is enabled by default (but –enable-alloc (CWDEBUG_ALLOC) must be enabled as well).  Use configure –disable-magic to disable it.

See also
Overflow/Underflow Protection (Red Zones)
Copyright © 2001 - 2004 Carlo Wood.  All rights reserved.