I met a problem when building with Visual studio, it says one DLL is not accessible because it is currently used by another process, my question is how can I determine the "another process"?
It can be useful to know which .dlls an application has loaded when analysing DLL-related problems. For this particular purpose you can use Microsoft's Process Explorer tool. ⚠️ After starting Process Explorer select the process or application that you want to inspect.
Process Explorer 1 Open Process Explorer (running as "administrator") by running procexp.exe or procexp64.exe. 2 Enter the keyboard shortcut Ctrl+F. Alternatively, click the “Find” menu and select “Find a Handle or DLL”. More ...
The list of DLLs of the selected (!) process can be saved (which is useful if you want someone else to look at it) by clicking File → Save as... (or press Ctrl+A ): The resulting file starts with the process list and after that it lists the selected process's DLLs:
If you need to find out which process has a DLL locked, the command line version of taskmanager can be used. Use tasklist to find out which process is locking a DLL - Windows Forum - Spiceworks Home Home Windows General Windows How-tos Use tasklist to find out which process is locking a DLL General Windows
tasklist /m thelocked.dll
Suggested by
https://blogs.msdn.microsoft.com/winclient/2004/07/08/how-to-find-out-which-process-is-locking-a-dll/
Process Explorer has a facility that allows you to search through the currently running processes for a specific file. To perform this search go to Find
->Find Handle or DLL...
and then enter the name of the file you are interested in.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With