473,387 Members | 1,528 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Compilation : The process cannot access the file ...

Sin
> 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.
Nov 20 '05 #1
0 3455

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Paul | last post by:
Hi, VB.NET is saying the file I am creating is in use by another process and won't complete its task of moving the file to the specified destination folder. Here is my code (the main bit...
10
by: Sune | last post by:
Hi, previously I used Eclipse CDT for compiling my files just to get started with C and leave C++ behind. Now it's time to get a little more serious so I've moved my files to a new workplace and...
4
by: Mountain Bikn' Guy | last post by:
I am having serious problems with the following IDE bug: Could not write to output file 'x.dll' -- 'The process cannot access the file because it is being used by another process. ' and BUG:...
1
by: Krissy | last post by:
Hi all, Sometimes after building a project, or uploading it to the server, when we go to view the page, we get the following error. To overcome this we have to end the aspnet_wp.exe process...
2
by: Annie | last post by:
hello guys, I have a header file in the form of user control (.ascx) that all my pages inherit from it. I have a textbox that i need to access it from all the pages actually i show there user...
2
by: jimjxr | last post by:
Hi, I'm trying to use ICodeCompiler.CompileAssemblyFromSource to compile C# source code (in a string) into assembly dynamically. This works fine in a console program, but fails under ASP.NET,...
0
by: Sin | last post by:
> 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...
5
by: Stuart Carnie | last post by:
I suspect it's unlikely, but you'll never know until you ask, but are there any attributes that would allow us to contribute to the compiled output? e.g. // this class exists in a separate,...
0
nightangel
by: nightangel | last post by:
Hi dude,what i was done in my application is uploading a image file to my server using FTP, it work great when pushing a file into the server path using FTP. The problem i met now is i need to do a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.