Click here to Skip to main content
15,914,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Memory Leaks Pin
dazinith2-May-02 5:51
dazinith2-May-02 5:51 
GeneralRe: Memory Leaks Pin
Niklas L2-May-02 6:00
Niklas L2-May-02 6:00 
GeneralRe: Memory Leaks Pin
Ravi Bhavnani2-May-02 6:03
professionalRavi Bhavnani2-May-02 6:03 
GeneralRe: Memory Leaks Pin
dazinith2-May-02 6:05
dazinith2-May-02 6:05 
GeneralRe: Memory Leaks Pin
dazinith2-May-02 6:20
dazinith2-May-02 6:20 
GeneralRe: The VC++ way to point out memory leak for you! Pin
Maxwell Chen2-May-02 7:04
Maxwell Chen2-May-02 7:04 
GeneralRe: The VC++ way to point out memory leak for you! Pin
Anders Molin2-May-02 8:45
professionalAnders Molin2-May-02 8:45 
GeneralRe: The VC++ way to point out memory leak for you! Pin
Maxwell Chen2-May-02 17:10
Maxwell Chen2-May-02 17:10 
But when I applied those functions
_CrtSetDbgFlag(_CRTDBG_LEAK_CHECK_DF | _CRTDBG_ALLOC_MEM_DF);
_CrtSetReportMode(_CRT_WARN, _CRTDBG_MODE_FILE);
_CrtSetReportFile(_CRT_WARN, _CRTDBG_FILE_STDOUT);
in MFC app projects, set the debug argument to redirect the report to some txt file like MemLkRpt.txt , nothing's reported in that file. How should I do, like: when should these _CrtSet???( ) functions be called, in the ctor of theApp, or some other where? Any additional steps must be taken? ... etc.

And by the way, I can not delete the generated MemLkRpt.txt file!

Thanks Smile | :)


Maxwell Chen
No code is good code.
GeneralRe: Memory Leaks Pin
Roger Allen2-May-02 23:24
Roger Allen2-May-02 23:24 
General#if directive Pin
_Magnus_2-May-02 5:06
_Magnus_2-May-02 5:06 
GeneralRe: #if directive Pin
Tom Archer2-May-02 5:11
Tom Archer2-May-02 5:11 
GeneralRe: #if directive Pin
_Magnus_2-May-02 5:24
_Magnus_2-May-02 5:24 
GeneralRe: #if directive Pin
Tom Archer2-May-02 5:35
Tom Archer2-May-02 5:35 
GeneralRe: #if directive Pin
_Magnus_2-May-02 5:44
_Magnus_2-May-02 5:44 
GeneralRe: #if directive Pin
Tom Archer2-May-02 5:46
Tom Archer2-May-02 5:46 
GeneralRe: #if directive Pin
_Magnus_2-May-02 5:55
_Magnus_2-May-02 5:55 
GeneralRe: #if directive Pin
Tom Archer2-May-02 5:59
Tom Archer2-May-02 5:59 
GeneralRe: #if directive Pin
David Viggiano2-May-02 5:29
David Viggiano2-May-02 5:29 
GeneralRe: #if directive Pin
_Magnus_2-May-02 5:41
_Magnus_2-May-02 5:41 
GeneralRe: #if directive Pin
Tom Archer2-May-02 5:42
Tom Archer2-May-02 5:42 
GeneralRe: #if directive Pin
Maxwell Chen2-May-02 7:24
Maxwell Chen2-May-02 7:24 
GeneralWlxSetTimeout Pin
David Viggiano2-May-02 4:56
David Viggiano2-May-02 4:56 
GeneralUpdate Registry Key Pin
kyledunn2-May-02 4:50
kyledunn2-May-02 4:50 
GeneralRe: Update Registry Key Pin
Tom Archer2-May-02 4:52
Tom Archer2-May-02 4:52 
GeneralRe: Update Registry Key Pin
kyledunn2-May-02 4:57
kyledunn2-May-02 4:57 

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.