windows - DLL locked - Visual Studio 2010 C++ -


i’m logged onto machine , current problem involves custom build step has trouble copying .dll bin directory because windows says cannot access file because it’s being used process.

i’m able reproduce on several other projects. sequence of events build release successfully, test, checkout sha when doing git bisect, , attempt build release sha without doing git clean -xfd (intentionally, because i’m trying cache reusable data possible). weird thing tried use process explorer (procexp) , tasklist /m <locked_dll.dll> search whatever holding onto dll, , unable find holding onto dll. i’m on non-admin account, , i’m not sure if causing windows hide processes me. rebooting machine helps, that’s not acceptable solution since i’m trying automate things. i’m able delete .dll, , when try build project in vs, it’ll complain still can’t access dll when trying copy on bin folder. ideas? i’m going keep researching issue, of right now, i’m sort of stumped.

edit: seems duplicate question (error: cannot access file bin/debug/... because being used process), i'll leave open see if has found new related topic.

i've seen problem in vs 2010 large .net solution multiple projects in it. every case i've seen far pertains have 1 project dependency dlls project uses, , other project uses first project reference, , uses same dependency dlls happen different version first project.

to describe different way:

project depends on v1 of dll a

project b depends on project , v2 of dll a

both project , b in same solution

the solution use same version of dll a. run when upgrading new version of sqlite, , forget update dependency in of projects.


Comments

Popular posts from this blog

dns - How To Use Custom Nameserver On Free Cloudflare? -

python - Pygame screen.blit not working -

c# - Web API response xml language -