ALL,
I'm trying to develop a program in C++ using MSVC. The development is done on the laptop running Windows 8.1. During one of the run I saw that the IDE reports a bunch of memory leaks.
Googling shows that there is a tool called Visual Leak Detector (VLD). So I grabbed it and added the appropriate options, recompiled and re-run.
Apparently the application crashed. I added VLD to all DLLs that the project contains but still got the same crash. Trying to debug it, I see that the application doesn't even hit the creation of the application object.
Next step I did is I moved my code to another laptop which runs Windows 7 and has the same MSVC 2010 installed. I recompiled the application on that machine and ran it. The application started without any issues.
Next step I tried - run Dependency Walker on the binary executable on Windows 8.1 machine. The Dependency Walker found that I am missing couple of DLLs (API-MS-WIN-CORE-KERNEL32-PRIVATE-L1-1-1.DLL, API-MS-WIN-CORE-PRIVATEPROFILE-L1-1-1.DLL and couple more of that nature). So going back to Google I found this post: c++/cli DLL fails under Win 8.1, which says I shouldn't be using Dependency Walker at all.
So now my question is - how do I build the program with VLD on Windows 8.1 machine to see where are my leaks?
Thank you and sorry for such a long post.
[EDIT]
Here is the backtrace at the time of the crash:
ntdll.dll!77440d72()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll] vld_x86.dll!00d9abf0()
vld_x86.dll!00dae9df()
vld_x86.dll!00daeb4d()
KernelBase.dll!74dd3126()
user32.dll!75cd7433()
user32.dll!75cd5ab6()
user32.dll!75cd58c4()
ntdll.dll!7744959e()
ntdll.dll!77449518()
ntdll.dll!77457685()
ntdll.dll!7745b390()
ntdll.dll!7746735f()
vld_x86.dll!00daf9b6()
vld_x86.dll!00dadd99()
msvcrt.dll!756ab0f9()
KernelBase.dll!74dd2fd3()
vld_x86.dll!00daf9b6()
vld_x86.dll!00daf9b6()
vld_x86.dll!00dade47()
[/EDIT]