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

C / C++ / MFC

 
GeneralRe: min-max values Pin
Tomasz Sowinski30-Aug-02 1:06
Tomasz Sowinski30-Aug-02 1:06 
GeneralRe: min-max values Pin
markkuk30-Aug-02 1:16
markkuk30-Aug-02 1:16 
GeneralRe: min-max values Pin
Tomasz Sowinski30-Aug-02 1:29
Tomasz Sowinski30-Aug-02 1:29 
GeneralRe: min-max values Pin
Zizilamoroso30-Aug-02 3:41
Zizilamoroso30-Aug-02 3:41 
GeneralMemory leakages Pin
Anonymous30-Aug-02 0:56
Anonymous30-Aug-02 0:56 
GeneralRe: Memory leakages Pin
Tomasz Sowinski30-Aug-02 1:09
Tomasz Sowinski30-Aug-02 1:09 
GeneralRe: Memory leakages Pin
pépé30-Aug-02 4:11
pépé30-Aug-02 4:11 
GeneralRe: Memory leakages Pin
Anders Molin30-Aug-02 12:40
professionalAnders Molin30-Aug-02 12:40 
You don't have to call _CrtDumpMemoryLeaks() and _CrtSetBreakAlloc() yourself...

Just call _CrtSetDbgFlag(_CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF | _CRTDBG_CHECK_ALWAYS_DF); in the start of your program, and it will detect all memory leaks...

[edit]
This also checks for memory ower/underwrites...
[/edit]

And if you define _CRTDBG_MAP_ALLOC before any includes (in the top of stdafx.h) you also get the sourcefile and linenumber where you allocated the not-free'ed memory. Wink | ;)

- Anders

Money talks, but all mine ever says is "Goodbye!"
GeneralTCP header checksum calculation Pin
AIDS30-Aug-02 0:56
AIDS30-Aug-02 0:56 
GeneralRe: TCP header checksum calculation Pin
Koep30-Aug-02 1:02
Koep30-Aug-02 1:02 
GeneralRe: TCP header checksum calculation Pin
AIDS30-Aug-02 1:40
AIDS30-Aug-02 1:40 
GeneralRe: TCP header checksum calculation Pin
Stephen C. Steel30-Aug-02 12:30
Stephen C. Steel30-Aug-02 12:30 
GeneralProblems with CArray Updated Pin
Koep30-Aug-02 0:50
Koep30-Aug-02 0:50 
GeneralRe: Problems with CArray Updated Pin
Tomasz Sowinski30-Aug-02 0:56
Tomasz Sowinski30-Aug-02 0:56 
GeneralRe: Problems with CArray Updated Pin
Koep30-Aug-02 1:00
Koep30-Aug-02 1:00 
GeneralRe: Problems with CArray Updated Pin
Tomasz Sowinski30-Aug-02 1:12
Tomasz Sowinski30-Aug-02 1:12 
GeneralRe: Problems with CArray Updated Pin
jhwurmbach30-Aug-02 3:20
jhwurmbach30-Aug-02 3:20 
GeneralRe: Problems with CArray Updated Pin
Tomasz Sowinski30-Aug-02 3:21
Tomasz Sowinski30-Aug-02 3:21 
GeneralRe: Problems with CArray Updated Pin
jhwurmbach30-Aug-02 3:48
jhwurmbach30-Aug-02 3:48 
GeneralProblems with CArray Pin
Koep30-Aug-02 0:48
Koep30-Aug-02 0:48 
GeneralRe: Problems with CArray Pin
mishgun30-Aug-02 1:35
mishgun30-Aug-02 1:35 
GeneralRe: Problems with CArray Pin
Koep30-Aug-02 1:43
Koep30-Aug-02 1:43 
GeneralCPrintDialog problem Pin
Wouter Dhondt29-Aug-02 23:58
Wouter Dhondt29-Aug-02 23:58 
GeneralRecompiler Engine Pin
Joel Holdsworth29-Aug-02 23:55
Joel Holdsworth29-Aug-02 23:55 
GeneralRe: Recompiler Engine Pin
Tomasz Sowinski30-Aug-02 0:03
Tomasz Sowinski30-Aug-02 0:03 

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.