c++visual-studiokinect-sdkazurekinect

While debugging with Visual Studio, my application freezes on an external DLL call. How can I find the path to this DLL?


I am debugging a Windows application on Visual Studio 2017 because my Azure Kinect application freezes after 20-30minutes of use. When I "pause" the debugger and check the call stack, I can see that the main thread is waiting for an operation happening on a separate thread. This second thread is executing a method defined by k4a.dll.

I have three versions of this dll on my operating system, and I am not sure which one my application is using. Is there any way I can extract the path to the library (dll) from Visual Studio?

enter image description here

(Notice: I am not looking for answers that tell me to use tools like PE-Explorer or Depends. I want that information coming from Visual Studio as it could be finding another library in its scan path)


Solution

  • Turns out you just need to right-click the Call Stack window over the library name and select Go To Module.

    A new window will pop-up with a path to all the libraries your application is using...

    enter image description here

    Modules window with the path for each library:

    enter image description here