Memory leaks(CRTDBG_MAP_ALLOC)
Hello, as u can imagine, I have memory leaks. I added
#define CRTDBG_MAP_ALLOC
#include <stdlib.h>
#include <crtdbg.h>
in afxstd.h, and ran it through the VC. Most of the memory dumps were
with no file name/file line, only a small minority had this data. My application is a multithreaded one, with a lot of dlls, and I run it in debug configuration. At some point i tried to add "_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
" in all kind of places but it didn't change anything.
can anyone have any idea of what can cause it (i.e- some dumps has file data, but the vast majority haven't), and more important, how can i solve it?
Thanks.
|