Click here to Skip to main content
15,892,293 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: upcast Pin
Stefan_Lang4-May-11 6:26
Stefan_Lang4-May-11 6:26 
AnswerRe: upcast Pin
Stefan_Lang4-May-11 5:29
Stefan_Lang4-May-11 5:29 
GeneralRe: upcast Pin
Smith#4-May-11 6:03
Smith#4-May-11 6:03 
GeneralRe: upcast Pin
Albert Holguin4-May-11 7:15
professionalAlbert Holguin4-May-11 7:15 
QuestionDebug OK, Release wrong after run 59times Pin
bopi4-May-11 4:17
bopi4-May-11 4:17 
QuestionRe: Debug OK, Release wrong after run 59times Pin
David Crow4-May-11 5:12
David Crow4-May-11 5:12 
GeneralRe: Debug OK, Release wrong after run 59times Pin
Albert Holguin4-May-11 5:22
professionalAlbert Holguin4-May-11 5:22 
AnswerRe: Debug OK, Release wrong after run 59times Pin
Stefan_Lang4-May-11 5:40
Stefan_Lang4-May-11 5:40 
The problem is that while the debug version stores additional information for each allocation, the release version does not. So if you did not free all the memory that you allocated, then in the debug version, the (invisible) debug code will be able to free the memory that you forgot to clean up yourself. But the release version, lacking that additional information, is unable to do that by itself. This leaves you with memory leaks. Obviously these leaks are big enough that after 59 runs you've used up all your memory.

Fix: properly free the memory that you allocate when you don't need it any more!
QuestionWhy Enter key in Editbox count as 2 Character? Pin
Le@rner4-May-11 2:07
Le@rner4-May-11 2:07 
AnswerRe: Why Enter key in Editbox count as 2 Character? Pin
Niklas L4-May-11 2:11
Niklas L4-May-11 2:11 
GeneralRe: Why Enter key in Editbox count as 2 Character? Pin
Le@rner4-May-11 2:13
Le@rner4-May-11 2:13 
GeneralRe: Why Enter key in Editbox count as 2 Character? Pin
Niklas L4-May-11 2:17
Niklas L4-May-11 2:17 
GeneralRe: Why Enter key in Editbox count as 2 Character? Pin
Le@rner4-May-11 2:26
Le@rner4-May-11 2:26 
GeneralRe: Why Enter key in Editbox count as 2 Character? Pin
Niklas L4-May-11 2:30
Niklas L4-May-11 2:30 
QuestionShowing a Confirmation Message Box on Closing a Dialog Pin
pix_programmer3-May-11 21:26
pix_programmer3-May-11 21:26 
AnswerRe: Showing a Confirmation Message Box on Closing a Dialog Pin
Richard MacCutchan3-May-11 21:55
mveRichard MacCutchan3-May-11 21:55 
AnswerRe: Showing a Confirmation Message Box on Closing a Dialog Pin
Code-o-mat3-May-11 21:57
Code-o-mat3-May-11 21:57 
GeneralRe: Showing a Confirmation Message Box on Closing a Dialog Pin
pix_programmer3-May-11 22:28
pix_programmer3-May-11 22:28 
GeneralRe: Showing a Confirmation Message Box on Closing a Dialog Pin
Code-o-mat3-May-11 22:40
Code-o-mat3-May-11 22:40 
GeneralRe: Showing a Confirmation Message Box on Closing a Dialog Pin
Richard MacCutchan4-May-11 1:46
mveRichard MacCutchan4-May-11 1:46 
AnswerRe: Showing a Confirmation Message Box on Closing a Dialog Pin
tagopi3-May-11 22:15
tagopi3-May-11 22:15 
AnswerRe: Showing a Confirmation Message Box on Closing a Dialog Pin
Stefan_Lang4-May-11 1:45
Stefan_Lang4-May-11 1:45 
GeneralRe: Showing a Confirmation Message Box on Closing a Dialog Pin
Niklas L4-May-11 2:03
Niklas L4-May-11 2:03 
Questionhow do i save complete webpage in local disk? Pin
yogish2933-May-11 20:21
yogish2933-May-11 20:21 
AnswerRe: how do i save complete webpage in local disk? Pin
_AnsHUMAN_ 3-May-11 20:32
_AnsHUMAN_ 3-May-11 20:32 

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.