Ask Your Question

Revision history [back]

Your compiler is in debug mode.The issue is how to allocate the memory in debug mode that compiler fill it by specified pattern(magic debug values).If you build your code in the release mode probably the initial value is zero.Magic debug values are specific values written to memory during allocation or deallocation, so that it will later be possible to tell whether or not they have become corrupted, and to make it obvious when values taken from uninitialized memory are being used.

Your compiler is in debug mode.The issue is how to allocate the memory in debug mode that compiler fill it by specified specific pattern(magic debug values).If you build your code in the release mode probably the initial value is zero.Magic debug values are specific values written to memory during allocation or deallocation, so that it will later be possible to tell whether or not they have become corrupted, and to make it obvious when values taken from uninitialized memory are being used.