Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Visual C++ 6.0 is being stupid

Posted on 2002-04-16
Medium Priority
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?

Question by:SuperMario
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 32

Expert Comment

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

If you find out anything, please post it here...

Expert Comment

ID: 6946430
tried rebooting and then compile
LVL 49

Expert Comment

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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.


Accepted Solution

snoegler earned 200 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)

Expert Comment

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

Expert Comment

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

Expert Comment

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.

Author Comment

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

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses

660 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