473,397 Members | 2,056 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,397 software developers and data experts.

locking files during compiling...

Hi All,

Did somebody have a problem compiling some solution in VS2003? I get the
error every time that some files are locked and are using by another
process. I repeat compiling again and again and finally the compilation can
be finished successfully after several tries. What can be a reason of that?
I turned off my antivirus software, no results. Maybe it's just a bug of the
VS2003? I installed the latest service pack for the Studio from the internet
and it's up-to-date now.

I attach below the little bit shorted message strings about this mistake. I
don't know, maybe the computer is too fast, maybe some other reason... But I
also know that several programmers around me are having these problems in
their PCs

I have no idea yet. So, if somebody has an idea how to solve it please let
me know.

Regards,
Dmitri.

P.S. Originally I get in several times more messages, I just compressed
these strings to insert here.

----------------------------------------------------------------------------
----

Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'c:\xxx.dll'. The process cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot
access the file because it is being used by another process.
The dependency 'xxx' could not be found.
The dependency 'xxx' could not be found.
The file 'xx.dll' cannot be copied to the run directory. The process cannot
access the file because it is being used by another process.
The file 'xxx.exe' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

etc.
Nov 15 '05 #1
3 4965
Dmitri,

I got this error many times in VS .NET 2002. Seems to be a feature of the
IDE and this has nothing to do with anti-virus software. I usually just
re-start the IDE to get rid of this errors.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

"Dmitri Shvetsov" <ds*******@cox.net> wrote in message
news:pfAYa.40383$Ne.39015@fed1read03...
Hi All,

Did somebody have a problem compiling some solution in VS2003? I get the
error every time that some files are locked and are using by another
process. I repeat compiling again and again and finally the compilation can be finished successfully after several tries. What can be a reason of that? I turned off my antivirus software, no results. Maybe it's just a bug of the VS2003? I installed the latest service pack for the Studio from the internet and it's up-to-date now.

I attach below the little bit shorted message strings about this mistake. I don't know, maybe the computer is too fast, maybe some other reason... But I also know that several programmers around me are having these problems in
their PCs

I have no idea yet. So, if somebody has an idea how to solve it please let
me know.

Regards,
Dmitri.

P.S. Originally I get in several times more messages, I just compressed
these strings to insert here.

-------------------------------------------------------------------------- -- ----

Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'c:\xxx.dll'. The process cannot access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process cannot access the file because it is being used by another process.
The dependency 'xxx' could not be found.
The dependency 'xxx' could not be found.
The file 'xx.dll' cannot be copied to the run directory. The process cannot access the file because it is being used by another process.
The file 'xxx.exe' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

etc.


Nov 15 '05 #2
we have this problem as well although restarting the ide doesn't help
the problem is always with a class library project and the solution is to
delete the lib and obj directories for this project and then rebuild the
entire solution

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:uT*************@tk2msftngp13.phx.gbl...
Dmitri,

I got this error many times in VS .NET 2002. Seems to be a feature of the
IDE and this has nothing to do with anti-virus software. I usually just
re-start the IDE to get rid of this errors.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

"Dmitri Shvetsov" <ds*******@cox.net> wrote in message
news:pfAYa.40383$Ne.39015@fed1read03...
Hi All,

Did somebody have a problem compiling some solution in VS2003? I get the
error every time that some files are locked and are using by another
process. I repeat compiling again and again and finally the compilation can
be finished successfully after several tries. What can be a reason of

that?
I turned off my antivirus software, no results. Maybe it's just a bug of

the
VS2003? I installed the latest service pack for the Studio from the

internet
and it's up-to-date now.

I attach below the little bit shorted message strings about this mistake. I
don't know, maybe the computer is too fast, maybe some other reason...
But I
also know that several programmers around me are having these problems

in their PCs

I have no idea yet. So, if somebody has an idea how to solve it please let me know.

Regards,
Dmitri.

P.S. Originally I get in several times more messages, I just compressed
these strings to insert here.


--------------------------------------------------------------------------
--
----

Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process

cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'c:\xxx.dll'. The process

cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process

cannot
access the file because it is being used by another process.
The dependency 'xxx' could not be found.
The dependency 'xxx' could not be found.
The file 'xx.dll' cannot be copied to the run directory. The process

cannot
access the file because it is being used by another process.
The file 'xxx.exe' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

etc.

Nov 15 '05 #3
I have a general question to those who have problems with file locking. What
Windows do you use? XP? When I was working under 2000 I didn't know about
these problems at all. When I started to use XP I've got a lot of file
sharing problems during compilation. I suspect that XP has this problem
instead of VS.

Any opinion yet?

Regards,
Dmitri.

"Dmitriy Lapshin [C# / .NET MVP]" <x-****@no-spam-please.hotpop.com> wrote
in message news:uT*************@tk2msftngp13.phx.gbl...
Dmitri,

I got this error many times in VS .NET 2002. Seems to be a feature of the
IDE and this has nothing to do with anti-virus software. I usually just
re-start the IDE to get rid of this errors.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

"Dmitri Shvetsov" <ds*******@cox.net> wrote in message
news:pfAYa.40383$Ne.39015@fed1read03...
Hi All,

Did somebody have a problem compiling some solution in VS2003? I get the
error every time that some files are locked and are using by another
process. I repeat compiling again and again and finally the compilation can
be finished successfully after several tries. What can be a reason of

that?
I turned off my antivirus software, no results. Maybe it's just a bug of

the
VS2003? I installed the latest service pack for the Studio from the

internet
and it's up-to-date now.

I attach below the little bit shorted message strings about this mistake. I
don't know, maybe the computer is too fast, maybe some other reason...
But I
also know that several programmers around me are having these problems

in their PCs

I have no idea yet. So, if somebody has an idea how to solve it please let me know.

Regards,
Dmitri.

P.S. Originally I get in several times more messages, I just compressed
these strings to insert here.


--------------------------------------------------------------------------
--
----

Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process

cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'c:\xxx.dll'. The process

cannot
access the file because it is being used by another process.
Cannot copy assembly 'Compression' to file 'D:\xxx.dll'. The process

cannot
access the file because it is being used by another process.
The dependency 'xxx' could not be found.
The dependency 'xxx' could not be found.
The file 'xx.dll' cannot be copied to the run directory. The process

cannot
access the file because it is being used by another process.
The file 'xxx.exe' cannot be copied to the run directory. The process
cannot access the file because it is being used by another process.

etc.

Nov 15 '05 #4

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

Similar topics

16
by: Nid | last post by:
How do I do row-level locking on SQL Server? Thanks, Nid
5
by: matt dittman | last post by:
I have created a windows service that reads emails from a drop directory and moves them to the appropriate mail folder every 15 seconds. I can move, rename and delete the files as needed, up...
18
by: JKop | last post by:
Here's what I know so far: You have a C++ project. You have source files in it. When you go to compile it, first thing the preprocessor sticks the header files into each source file. So now...
16
by: matthurne | last post by:
I just started learning C++ on my own...I'm using Accelerated C++. Something it hasn't explained and I keep wondering about is how header files actually work. I suspect it doesn't get into it...
3
by: pooja | last post by:
Suppose i have created a class c1 with f1()in c1.cpp and included this c1.cpp in file1.cpp file , which is also having main() by giving the statement #include "c1.cpp". the same i can do by...
0
by: Todd Matson | last post by:
I am having a file-locking problem with an Access database. The .mdb and ..ldb files both remain locked even after all users have closed Access. The project is an Access 2000 database split into...
2
by: Joecx | last post by:
Hi I am trying to understand what the lock feature does in vb.net. I am using a text file. I have created an instance of the filestream using fs and I am using the following line: fs.lock(0,...
5
by: FredC | last post by:
I have an application that uses mulitple timers. Each of the timer event handlers manipulate a common array of data. I'm getting Null refererance errors - should I put a lock on the array when I...
9
by: bowlderyu | last post by:
Hello, all. I meet a question about compiling files. Eg., I have three files named myfile.h, myfile.c and the main.c file, and there is a function, ex, void myfun(...). If I put myfun(...) in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.