Click here to Skip to main content
15,353,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionred squiggly line - misspelt words Pin
si_6913-May-11 5:42
Membersi_6913-May-11 5:42 
AnswerRe: red squiggly line - misspelt words Pin
Albert Holguin13-May-11 7:22
professionalAlbert Holguin13-May-11 7:22 
AnswerRe: red squiggly line - misspelt words Pin
Hans Dietrich13-May-11 13:09
mentorHans Dietrich13-May-11 13:09 
GeneralRe: red squiggly line - misspelt words Pin
Albert Holguin13-May-11 13:13
professionalAlbert Holguin13-May-11 13:13 
GeneralRe: red squiggly line - misspelt words Pin
Mark Salsbery13-May-11 14:03
MemberMark Salsbery13-May-11 14:03 
GeneralRe: red squiggly line - misspelt words Pin
Hans Dietrich13-May-11 20:09
mentorHans Dietrich13-May-11 20:09 
AnswerRe: red squiggly line - misspelt words Pin
Chris Losinger14-May-11 5:32
professionalChris Losinger14-May-11 5:32 
Questiondetect memory leak by _CrtDumpMemoryLeaks(); Pin
includeh1013-May-11 2:57
Memberincludeh1013-May-11 2:57 
As in link: http://msdn.microsoft.com/en-us/library/e5ewb1h3%28v=VS.80%29.aspx[^]

I defined
#define _CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>

and call _CrtDumpMemoryLeaks() in 2 places:

place 1. from a menu Item.
in this case, I see leaking info as:
Detected memory leaks!
Dumping objects ->
{3443} normal block at 0x02EE9BF8, 373376 bytes long.
 Data: <                > C0 C0 C0 C0 C0 C0 00 00 00 00 00 00 00 00 00 00 
afxtempl.h(330) : {3273} normal block at 0x01DCD530, 4 bytes long.
 Data: <(   > 28 10 07 02 
strcore.cpp(118) : {3272} normal block at 0x01DCF2A0, 22 bytes long.
 Data: <            H a > 01 00 00 00 04 00 00 00 04 00 00 00 48 00 61 00 
//more...
E:\Develops\MyProgram\MyUser.cpp(101) : {3258} client block at 0x01DCF890, subtype 0, 152 bytes long.
a CWnd object at $01DCF890, 152 bytes long
strcore.cpp(118) : {3256} normal block at 0x01DCE130, 22 bytes long.
 Data: <            N e > 01 00 00 00 04 00 00 00 04 00 00 00 4E 00 65 00 
//more...


I think info above is not meaningful because app has not exited and many operator "new"s have not been deleted.

place 2. at exit point (MFC - destructor of CWinApp's subclass)
this time, I still see
Detected memory leaks!
Dumping objects ->
{3473} normal block at 0x01DA20C0, 28 bytes long.
 Data: <    !Ce         > BC DF AF AB 21 43 65 87 83 00 00 00 00 00 00 00 
{3443} normal block at 0x02EE9BF8, 373376 bytes long.
 Data: <                > C0 C0 C0 C0 C0 C0 00 00 00 00 00 00 00 00 00 00 
//more...


But, this time, there is no any info about my program files, such as in case 1:
E:\Develops\MyProgram\MyUser.cpp(101) : {3258} client block at 0x01DCF890, subtype 0, 152 bytes long.
a CWnd object at $01DCF890, 152 bytes long
strcore.cpp(118) : {3256} normal block at 0x01DCE130, 22 bytes long.
 Data: &lt;            N e &gt; 01 00 00 00 04 00 00 00 04 00 00 00 4E 00 65 00 



My Q is:
Does info in place 2 mean that my program has no memory leaks because there are no my files there?
Or how to find solution without my files related info?
AnswerRe: detect memory leak by _CrtDumpMemoryLeaks(); Pin
Albert Holguin13-May-11 4:47
professionalAlbert Holguin13-May-11 4:47 
AnswerRe: detect memory leak by _CrtDumpMemoryLeaks(); Pin
Mark Salsbery13-May-11 5:09
MemberMark Salsbery13-May-11 5:09 
AnswerRe: detect memory leak by _CrtDumpMemoryLeaks(); Pin
Chris Losinger14-May-11 5:34
professionalChris Losinger14-May-11 5:34 
QuestionLine break in CRichEdit Control Pin
si_6913-May-11 0:34
Membersi_6913-May-11 0:34 
AnswerRe: Line break in CRichEdit Control Pin
si_6913-May-11 0:43
Membersi_6913-May-11 0:43 
Questionwindows media encoder screen capture Pin
Member 296547113-May-11 0:21
MemberMember 296547113-May-11 0:21 
Questionhow to built popup and attach to listcontrol Pin
rjkg12-May-11 23:44
Memberrjkg12-May-11 23:44 
AnswerRe: how to built popup and attach to listcontrol Pin
Richard MacCutchan13-May-11 0:13
mveRichard MacCutchan13-May-11 0:13 
Questionhow to merge cells using msFlexgrid.. Pin
spalanivel12-May-11 19:25
Memberspalanivel12-May-11 19:25 
AnswerRe: how to merge cells using msFlexgrid.. Pin
«_Superman_»12-May-11 20:18
professional«_Superman_»12-May-11 20:18 
GeneralRe: how to merge cells using msFlexgrid.. Pin
spalanivel12-May-11 20:41
Memberspalanivel12-May-11 20:41 
Questionhow to simulate the mspaint... Pin
dousao12-May-11 17:08
Memberdousao12-May-11 17:08 
AnswerRe: how to simulate the mspaint... Pin
KingsGambit12-May-11 18:38
MemberKingsGambit12-May-11 18:38 
AnswerRe: how to simulate the mspaint... Pin
«_Superman_»12-May-11 20:20
professional«_Superman_»12-May-11 20:20 
AnswerRe: how to simulate the mspaint... Pin
Amarnath S12-May-11 22:34
professionalAmarnath S12-May-11 22:34 
QuestionCPropertySheet/CPropertyPage Pin
Bram van Kampen12-May-11 15:29
MemberBram van Kampen12-May-11 15:29 
QuestionRe: CPropertySheet/CPropertyPage Pin
JohnCz14-May-11 11:37
MemberJohnCz14-May-11 11:37 

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.