I developed an application which consists of main executable and dynamic library (dll). Both of them are developed by me and are build with same compiler (FYI: both are contained in same VS solution) on Windows 10 Pro.
When i want to test the executable and library for memory leaks with MS CRT library. I can detect memory leaks in the executable, but not in dynamic library (i intentionally leak in both with one undeleted integer).
Executable is build with MDd and the library is build with MTd. I also tried building the executable with MTd with no success. (Library due to its dependencies must be build with MT(d)). Also please be noted, I do not mean that i have smaller reports of memory leaks (like without filenames and lines), I mean there are no reports for dll when there should be atleast one.
The question is if does anybody had this problem and knows how to solve it.
Johannes Passing mentioned on his blog post that when DLL is linked to static version of CRT correct place to make explicit memory dumps is DllMain's DLL_PROCESS_DETACH
case.