Help For Memory Leak ?
-
Hey Guys I have memory leak problem in my app. I found one function in MSDN which gives the dump of memory if you have leak in u'r programm. The functions is, _CrtDumpMemoryLeaks() But it gives the output on console. I want to dump all information in one text file. Any pointer how to do that. ? I use have also used following to print it in file _CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE ) _CrtSetReportFile( _CRT_WARN, handle); Where handle is _HFILE type of handle of opened file. But still it doesn't gives result as expected. My new created text file is empty... Any help plz ? Regards Mike
-
Hey Guys I have memory leak problem in my app. I found one function in MSDN which gives the dump of memory if you have leak in u'r programm. The functions is, _CrtDumpMemoryLeaks() But it gives the output on console. I want to dump all information in one text file. Any pointer how to do that. ? I use have also used following to print it in file _CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE ) _CrtSetReportFile( _CRT_WARN, handle); Where handle is _HFILE type of handle of opened file. But still it doesn't gives result as expected. My new created text file is empty... Any help plz ? Regards Mike
-
Hey Guys I have memory leak problem in my app. I found one function in MSDN which gives the dump of memory if you have leak in u'r programm. The functions is, _CrtDumpMemoryLeaks() But it gives the output on console. I want to dump all information in one text file. Any pointer how to do that. ? I use have also used following to print it in file _CrtSetReportMode( _CRT_WARN, _CRTDBG_MODE_FILE ) _CrtSetReportFile( _CRT_WARN, handle); Where handle is _HFILE type of handle of opened file. But still it doesn't gives result as expected. My new created text file is empty... Any help plz ? Regards Mike