473,749 Members | 2,384 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4985
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.4038 3$Ne.39015@fed1 read03...
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.c om> wrote
in message news:uT******** *****@tk2msftng p13.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.4038 3$Ne.39015@fed1 read03...
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.c om> wrote
in message news:uT******** *****@tk2msftng p13.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.4038 3$Ne.39015@fed1 read03...
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
8929
by: Nid | last post by:
How do I do row-level locking on SQL Server? Thanks, Nid
5
1113
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 until the CDO.DropDirectory.GetMessages() method is called. At this point, the files are locked until I shut down the service. After processing and delivery, I need to be able to delete all the files in the drop directory. I can delete them via...
18
3179
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 you have your ".cpp" files all ready, without any "#include" or "#define" in them. Let's assume that there's 2 source files in this project, "a.cpp" and
16
12546
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 because it is, as the authors love to say, "implementation specific". If that's the case, how does the compiler commonly handle them? I use Linux and gcc specifically. Basically, I don't understand how a header file being included makes a...
3
3096
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 using header file. i can create a class c1 with f1() in c1.h and include this c1.h in file1.cpp by giving the statement #include "c1.h" tell me that what exactly is the difference between c1.h and c1.cpp? Since they both are doing the same things.
0
1544
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 a front-end and a back-end. The back-end is on a shared server on a Windows network. I am offsite; when I want to make changes to the back-end, I use Remote Desktop Connection to take over one of the office PCs. I always do this after hours, when...
2
2079
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, fs.length) When I set this up using the function instead of name spaces, it locks me out
5
4694
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 change a value? As well, should I lock the array when I only want to read a value?
9
1585
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 the main.c file like the following, ..... void myfun(...) {
0
8996
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8832
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9566
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9388
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9333
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9254
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4879
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3319
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2217
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.