all groups > visual studio .net debugging > june 2007 >
You're in the

visual studio .net debugging

group:

dll not found - VS2005 Not Releasing dll?


dll not found - VS2005 Not Releasing dll? randy1200
6/15/2007 11:18:01 AM
visual studio .net debugging:
I have a solution with 18 projects in it. If I compile the entire solution,
shutdown/restart VS2005, then Rebuild All again (no Clean performed), I get
compile errors as follows:

two.dll could not be found
three.dll could not be found
Unable to copy file "three.dll". Access to path denied.

If I shut down Visual Studio, then try to delete the context of my Debug
folder from "My Computer", I get the following error:

Cannot delete three: Access is denied.

If I reboot the PC, I can now delete three.dll and everything else in the
Debug folder. I can build and run and everything is fine. If I restart Visual
Studio and rebuild, the whole problem starts over again.

It appears that Visual Studio is not closing the compiled three.dll file. I
can close and reopen Visual Studio to recreate the problem without ever
running the application. It's funny that the application is out to testers
and they aren't having any problems.

Any suggestions on things to check to ensure Visual Studio closes this dll?
All this rebooting is really slowing everybody down.

Thanks,
Re: dll not found - VS2005 Not Releasing dll? Oleg Starodumov
6/18/2007 7:53:12 AM
After reproducing the problem, try to use ProcessExplorer from Sysinternals
to see which process is holding the dll:
http://www.microsoft.com/technet/sysinternals/ProcessesAndThreads/ProcessExplorer.mspx
(use "Find | Find Handle or Dll" menu)

It is possible that VS or one of its support processes does not terminate
and keeps running, holding the dll. If confirmed, you can try to kill that process
to see if it releases the dlls.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]


AddThis Social Bookmark Button