DLL-locking

Find out which process is locking a DLL without extra tools

Today I got the "The process cannot access the file ... because it is being used by another process" error again, during a development build. And as long as the DLL is locked, it's not possible to do a successful build.

Most sites and tips on the internet suggest to download some tool to detect which process is using the DLL. It seems that not many people are aware that

...

, since Windows XP, we don't need to download (or even pay for) a tool to detect this.

Just launch the windows console and navigate to the directory of the DLL. Now type

Code:

tasklist.exe /m /FI "MODULES eq locked.dll

and it will show you exactly which processes have loaded and locked this DLL. For moere information about tasklist use

Code:

tasklist /?

:-)
I wish you nice day

No feedback yet
Leave a comment

Your email address will not be revealed on this site.
PoorExcellent
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case sensitive)
Trackback address for this post
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case sensitive)