PC Review


Reply
Thread Tools Rate Thread

Compilation : The process cannot access the file ...

 
 
Sin
Guest
Posts: n/a
 
      12th Apr 2004
> Xxxxx : error PRJ0008 : Could not delete file 'd:\xxxxxxx.dll'.
> Make sure that the file is not open by another process and is not

write-protected.
>
> LINK : fatal error LNK1168: cannot open ../../Debug/xxxxx.dll for writing
>
> The file 'xxxxxx.dll' cannot be copied to the run directory. The process

cannot
> access the file because it is being used by another process.
> Could not copy temporary files to the output directory.



I have a big problem. I've had it for a long time but it recently got bad to
the point I cannot function with it anymore. We have a rather big solution
(47 projects). About half these projects are plain C++ win32 projects (DLLs
which export classes/functions/data). Half of those left are COM objects
which wrap some of the C++ DLLs. The others are VB.NET interface projects
which use the COM objects. The main application (EXE) is VB.NET...

A couple of these COM wrappers AS well as some of the VB projects are
dependencies of several/most of the VB projects and almost everytime I
compile the whole solution (or parts of it for that matter) I will get one
or more of the errors listed at the beginning of this msg. The usual fix is
to flush all debug data, close VS, reboot machine and then recompile all and
I'm ok for a couple more hours... Now it's got to the point i have to reboot
of EACH compilation....

ALL output of these projects is directed to the same directory (for
debugging and deployment reasons, mainly -- they are all inter-dependant)
and from what I could find this is part of the problem. We're still using
v1.0 of .NET and I suppose this could also be part of the problem. I'll
continue reading documentation to try and understand but I guess experience
from other programmers who've undoutbly hit the same problem would probably
be more interesting..........

Anyone can give me a hint on how to make all this work without resorting to
a batch file to copy all files to the EXE's debug directory or other ugly
tricks of the like?

Thanks in advance!

Alex.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't Edit Group Policy...The Process Cannot Access the File Because it is Being Used by Another Process Dave Onex Microsoft Windows 2000 Group Policy 0 30th Oct 2008 01:09 AM
Cannot Copy Assembly <MyAssembly> The Process Cannot Access The File Because It Is Being Used By Another Process Ram Microsoft Dot NET 1 3rd Jul 2005 11:19 AM
Cannot Copy Assembly <MyAssembly> The Process Cannot Access The File Because It Is Being Used By Another Process Ram Microsoft ASP .NET 2 30th Jun 2005 12:30 PM
delete file failed, The process cannot access the file because it is being used by another process guoqi zheng Microsoft ASP .NET 3 13th Apr 2005 07:17 PM
failed to open. Operating system error = 32(The process cannot access the file because it is being used by another process.). sql Microsoft Access ADP SQL Server 0 16th Feb 2005 06:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:08 PM.