Re: Problem only in release version!
- From: David Lowndes <davidl@xxxxxxxxxxxxxxx>
- Date: Tue, 11 Oct 2005 10:16:13 +0100
>the Debug version initializes most variables to zero.
In another bid to dispel this myth - a debug build doesn't do this.
In newer versions of VC++, the compiler has run-time diagnostic
options that will initialise automatic (stack) variables to a special
value in order to detect use of an uninitialised variable. If this
option isn't used, automatic variables are pseudo-random values that
might have a higher probability of being zero in a debug build.
There's no magic that initialises automatic variables to zero in debug
builds.
Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
.
- References:
- Problem only in release version!
- From: babak
- Re: Problem only in release version!
- From: Jochen Kalmbach [MVP]
- Re: Problem only in release version!
- From: Peter Oliphant
- Problem only in release version!
- Prev by Date: Re: Problem only in release version!
- Next by Date: Taking Ownership
- Previous by thread: Re: Problem only in release version!
- Next by thread: Re: Problem only in release version!
- Index(es):
Relevant Pages
|