Click here to Skip to main content
15,911,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog Pin
Martyn Pearson15-May-03 4:28
Martyn Pearson15-May-03 4:28 
GeneralScrolling a ClistView with shared scroll-bar Pin
schoni13-May-03 2:49
schoni13-May-03 2:49 
GeneralToolbar with combo box question Pin
Heywood13-May-03 2:36
Heywood13-May-03 2:36 
QuestionHow to consume base64Binary xml using C++ ? Pin
Anthony_Yio13-May-03 1:24
Anthony_Yio13-May-03 1:24 
QuestionRegister TLB, does it makes sense ??? Pin
Braulio Dez13-May-03 1:23
Braulio Dez13-May-03 1:23 
QuestionMemory leak detection... the best solution? Pin
Raphael Kindt13-May-03 1:10
Raphael Kindt13-May-03 1:10 
AnswerRe: Memory leak detection... the best solution? Pin
Neville Franks13-May-03 1:29
Neville Franks13-May-03 1:29 
AnswerRe: Memory leak detection... the best solution? Pin
Hari Krishnan (Noida)13-May-03 2:48
Hari Krishnan (Noida)13-May-03 2:48 
Hi,

http://www.codeproject.com/script/comments/forums.asp?msg=491851&forumid=1647&mode=all&userid=161454#xx491851xx
-----------------------------------------------------------
Hi,
Regarding the technique of dumping in-memory statistics, is
given below

Note: memstate1 takes snapshot of pre-memory leak and
memstate2 takes snapshot of post-memory leak. finally,
memstate3 makes the statistics based on both the snapshots.

CMemoryState memState1, memState2, memState3;

void CHello::MakeMemoryLeak()
{
memState1.Checkpoint();
LPCTSTR strMemoryLeak = new char[50];
memState2.Checkpoint();

memState3.Difference(memState1, memState2);
memState3.DumpStatistics();
}

Hope this Helps
Regards
~Hari~

GeneralRe: Memory leak detection... the best solution? Pin
Raphael Kindt13-May-03 3:28
Raphael Kindt13-May-03 3:28 
GeneralRe: Memory leak detection... the best solution? Pin
Hari Krishnan (Noida)13-May-03 3:44
Hari Krishnan (Noida)13-May-03 3:44 
GeneralRe: Memory leak detection... the best solution? Pin
paul413-May-03 5:25
paul413-May-03 5:25 
GeneralRe: Memory leak detection... the best solution? Pin
paul413-May-03 5:27
paul413-May-03 5:27 
GeneralGDI System calls Pin
vikramlinux13-May-03 1:01
vikramlinux13-May-03 1:01 
Generalabout programing windows example Pin
賴凱全13-May-03 0:28
賴凱全13-May-03 0:28 
GeneralRe: about programing windows example Pin
Tibor Blazko13-May-03 0:38
Tibor Blazko13-May-03 0:38 
GeneralRe: about programing windows example Pin
Anthony_Yio13-May-03 1:13
Anthony_Yio13-May-03 1:13 
GeneralLVM_GETSUBITEMRECT Pin
JensB13-May-03 0:22
JensB13-May-03 0:22 
GeneralVisual Studio project loading problems Pin
Meghani12-May-03 23:58
Meghani12-May-03 23:58 
Generalfloating point arithmic Pin
roel_12-May-03 23:47
roel_12-May-03 23:47 
QuestionUsing IDE with a Python build-script fails? Pin
Moak12-May-03 23:27
Moak12-May-03 23:27 
AnswerRe: Using IDE with a Python build-script fails? - Solved Pin
Moak13-May-03 0:08
Moak13-May-03 0:08 
GeneralNewbie Question Pin
Jorgen E.12-May-03 23:24
Jorgen E.12-May-03 23:24 
GeneralRe: Newbie Question Pin
jhwurmbach12-May-03 23:35
jhwurmbach12-May-03 23:35 
GeneralRe: Newbie Question Pin
Jorgen E.12-May-03 23:40
Jorgen E.12-May-03 23:40 
GeneralRe: Newbie Question Pin
jhwurmbach12-May-03 23:55
jhwurmbach12-May-03 23:55 

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.