Zhi Wang
Zhi Wang

Reputation: 1168

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

Upvotes: 21

Views: 31947

Answers (7)

Serg
Serg

Reputation: 2180

Also you may use "close handle" feature inside Process Explorer.

enter image description here

Upvotes: 2

Martin Ba
Martin Ba

Reputation: 38775

While Process Explorer is the best tool in general, what this error usually means when VS throws it at you is that the application you're trying to compile is still running (from an earlier run) and therefore the linker can't write its output.

Upvotes: 2

noelicus
noelicus

Reputation: 15055

Use the Find function (Find -> Find Handle or DLL) from SysInternals Process Explorer.

Upvotes: 1

hmjd
hmjd

Reputation: 121971

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.

Upvotes: 26

Bali C
Bali C

Reputation: 31231

You can use Process Explorer to see what processes have loaded which Dll's.

Upvotes: 0

Ivaylo Strandjev
Ivaylo Strandjev

Reputation: 70929

I would suggest you try unlocker. Helped me quite a few times.

Upvotes: 0

Related Questions