Solved

Visual C++ 6.0 is being stupid

Posted on 2002-04-16
8
171 Views
Last Modified: 2013-11-20
Hi everyone,

Every time I try to compile an updated .c file, I get an error message telling me that the file is in use by another application.

But it's not...

Any ideas?

Thanks,
Dan
0
Comment
Question by:SuperMario
8 Comments
 
LVL 32

Expert Comment

by:jhance
ID: 6945690
I've had the same problem but never got a useful solution here.  Several things were suggested but nothing seemed to help.

http://www.experts-exchange.com/jsp/qManageQuestion.jsp?ta=winprog&qid=20191838

If you find out anything, please post it here...
0
 
LVL 4

Expert Comment

by:pagladasu
ID: 6946430
tried rebooting and then compile
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 6947113
1) Something I didn't see in the other thread... If the file includes a line like:

#import "SomeHugeFile.dll"

then that causes some "unexpected" disk activity that can be quite lengthy (for instance, just building the auto-completion table for such a monster will take a long time).  The solution is to put that in your stdafx.h file.

2) Maybe the file IS in use.  What happens if you try to rename or delete it with the Explorer?

3) Are you sure it is the file that you just edited?  What exactly is the message?  If the program is running, then *it* is the file that is in use and the compiler can't delete it in order to build a new one.

-- Dan
0
 
LVL 6

Accepted Solution

by:
snoegler earned 50 total points
ID: 6947363
Disable your virus scanner. In our company, this caused on some machines this problem (VC opens file, Scanner recognizes that and scans immediately -> problem sometimes)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:muneeb_baig
ID: 6951529
Your file may be read only, or you trying to update file without checkout it from VSS.
0
 
LVL 3

Expert Comment

by:ruff_ryder
ID: 6951628
I get this crap too!! I think it might be the virus scanning program as well. I'm using Norton AV. It doesn't happen all the time but sometimes. I've been trying to see if i can see a pattern but none has appered thus far
0
 
LVL 6

Expert Comment

by:snoegler
ID: 6952845
Yep, Norton AV was the scanner we were (and still are) using. I disabled the on-line scanning, it is working since now w/o problems.
0
 
LVL 3

Author Comment

by:SuperMario
ID: 6961941
This appears to work, or at least reduce the problem. Thanks a lot!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Need a Shell script to start a service checking the port 6 48
Tab names are off by one 5 53
zeroMAx challenge 20 88
Message not shown 5 34
Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now