I got a memory leak (55 bytes) on my program like this. I am using C++, MFC, Visual Studio 2010.
Detected memory leaks! {13497} normal block at 0x0E44C248, 55 bytes long. Data: 44 3A 5C 46 44 41 53....
the problem is, the memory allocation number "13497" is not always same. it's always different number if I run the program again. I wanted to find where I didn't release the memory before the exit, with _crtBreakAlloc, but it seems not possible to break on a memory allocation number. I used _CrtSetDbgFlag, and _CrtDumpMemoryLeaks as well, but it also didn't work well.
Is there any way to detect the memory leak in this case?
Thank you.
"D:\FDAS..."), so I'd start by looking where you dynamically allocate those (or things that hold those, such as structs withchar[N]members as their first member. - WhozCraig