Visual Studio is not loading modules when attaching to process

后端 未结 2 1573
梦谈多话
梦谈多话 2020-12-17 19:28

I have a C++ application. When i press F5 in visual studio application starts and i can debug it. But when I run application from windows explorer and then attach this proce

2条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-17 19:31

    It sounds like the executable code that you are debugging (F5) is not the same as the one you are running from explorer. Check the date of the executable you are running. Also, it may be picking up a different version of DLL if you are using them. Try renaming one of your DLL files and then running from explorer. Use depends.exe to see which modules are being loaded.

提交回复
热议问题