Click here to Skip to main content
15,899,474 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStatically compiling in Visual C++ Pin
17-Dec-00 13:10
suss17-Dec-00 13:10 
GeneralRe: Statically compiling in Visual C++ Pin
Jonathan Gilligan17-Dec-00 14:40
Jonathan Gilligan17-Dec-00 14:40 
GeneralRe: Statically compiling in Visual C++ Pin
Erik Funkenbusch17-Dec-00 16:25
Erik Funkenbusch17-Dec-00 16:25 
GeneralRe: Statically compiling in Visual C++ Pin
l a u r e n21-Dec-00 19:56
l a u r e n21-Dec-00 19:56 
GeneralTrying to resize buttons in a toolbar..... Pin
Christian Graus17-Dec-00 11:03
protectorChristian Graus17-Dec-00 11:03 
GeneralCListCtrl Questions Pin
17-Dec-00 10:52
suss17-Dec-00 10:52 
GeneralRe: CListCtrl Questions Pin
Michael Dunn17-Dec-00 16:38
sitebuilderMichael Dunn17-Dec-00 16:38 
GeneralRe: CListCtrl Questions // initializing varaibles Pin
Julien21-Dec-00 11:27
Julien21-Dec-00 11:27 
The Debug build will allocate **much** more memory on the stack and in malloc's that the Release build will. This is of course what make the Debug build a debug build. What this means to what you are seeing is that the previous data at that location on the stack (in the LVITEM struct) happens to be 0 in the Debug build and not the Release.

As it happens most of this extra memory turns out to be zeros.

On the other hand perhaps the Debug build is initializing the memory to zero!
[This is easy to test]

Of course Michael is correct in that you should always innitialize your variables.

Jules
GeneralWin Media Encoder/Format SDK Pin
Roger17-Dec-00 5:43
Roger17-Dec-00 5:43 
GeneralSystem Wide Dll Pin
17-Dec-00 4:20
suss17-Dec-00 4:20 
GeneralRe: System Wide Dll Pin
Julien21-Dec-00 11:44
Julien21-Dec-00 11:44 
GeneralWindow DLL to detect wm_message of an active window Pin
16-Dec-00 22:32
suss16-Dec-00 22:32 
GeneralWindow DLL to detect wm_message of an active window Pin
16-Dec-00 22:31
suss16-Dec-00 22:31 
GeneralFAXing from MFC Pin
Brad Bruce16-Dec-00 10:37
Brad Bruce16-Dec-00 10:37 
Questionmodify MessageBox? Pin
15-Dec-00 23:57
suss15-Dec-00 23:57 
AnswerRe: modify MessageBox? Pin
Masoud Samimi16-Dec-00 0:39
Masoud Samimi16-Dec-00 0:39 
AnswerRe: modify MessageBox? Pin
Masoud Samimi16-Dec-00 13:16
Masoud Samimi16-Dec-00 13:16 
Generalcin with passwords Pin
Alvaro Mendez15-Dec-00 12:03
Alvaro Mendez15-Dec-00 12:03 
QuestionHow to avoid problems caused by moving a window? Pin
Joan M15-Dec-00 10:09
professionalJoan M15-Dec-00 10:09 
AnswerRe: How to avoid problems caused by moving a window? Pin
Michael Dunn15-Dec-00 18:55
sitebuilderMichael Dunn15-Dec-00 18:55 
Questionaccessing variables from different threads? Pin
Joan M15-Dec-00 10:03
professionalJoan M15-Dec-00 10:03 
AnswerRe: accessing variables from different threads? Pin
Michael Dunn15-Dec-00 19:00
sitebuilderMichael Dunn15-Dec-00 19:00 
AnswerRe: accessing variables from different threads? Pin
Julien21-Dec-00 12:04
Julien21-Dec-00 12:04 
QuestionDrawText and SetWindowPos? Pin
15-Dec-00 9:10
suss15-Dec-00 9:10 
AnswerRe: DrawText and SetWindowPos? Pin
20-Dec-00 6:16
suss20-Dec-00 6:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.