Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to determine the process that currently using a specific DLL

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"?

like image 654
Zhi Wang Avatar asked Jan 30 '13 09:01

Zhi Wang


People also ask

How do I know which DLLs an application has loaded?

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.

How do I find a handle or DLL in Process Explorer?

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 ...

How do I list the DLLs of a selected process?

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:

How to find out which process has a DLL locked?

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


2 Answers

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/

like image 197
Zohar Levi Avatar answered Nov 15 '22 20:11

Zohar Levi


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.

like image 33
hmjd Avatar answered Nov 15 '22 21:11

hmjd