Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cannot save file. The file may be in use by another application.

Cannot save file. The file may be in use by another application.

Scheduled Pinned Locked Moved C / C++ / MFC
helpquestion
11 Posts 9 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • U Ulf Ohlen

    MSVC has started to report this error when I try to save source files. It occurs maybe one time out of three, even if I have only one instance of VC running. Very annoying. Has anyone else had this problem with VC6/Win2000? Is it a known bug in VC? I found nothing on MSDN. It might be a Win2000 problem, I've never seen it under Win98.

    C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #2

    I see this a few times every day. Yes, i think it is a Win2k issue. It is really annoying. Even worse than source files, it can sometimes happen in the Class Wizard - and i've actually lost entire source files because of this one. I think CW does its work with temp files. When you make a change, CW creates and modifies a temp file, blows away the original file and tries to copy the temp to the original's name. Sometimes, CW will fail to copy the temp file back, after it has killed the original. The only chance of recovery is to find that temp file. Great fun. -c


    Smaller Animals Software, Inc.

    N 1 Reply Last reply
    0
    • U Ulf Ohlen

      MSVC has started to report this error when I try to save source files. It occurs maybe one time out of three, even if I have only one instance of VC running. Very annoying. Has anyone else had this problem with VC6/Win2000? Is it a known bug in VC? I found nothing on MSDN. It might be a Win2000 problem, I've never seen it under Win98.

      S Offline
      S Offline
      Stephane Routelous
      wrote on last edited by
      #3

      Are you sure that no other VC is running ? It happens to me sometimes when VC crash, I need to kill it with the Task Manager. Stephane "It is ridiculous to claim that video games influence children. For instance, if PacMan affected kids born in the eighties, we should by now have a bunch of teenagers who run around in darkened rooms eating pills while listening to monotonous electronic music."

      U L 2 Replies Last reply
      0
      • S Stephane Routelous

        Are you sure that no other VC is running ? It happens to me sometimes when VC crash, I need to kill it with the Task Manager. Stephane "It is ridiculous to claim that video games influence children. For instance, if PacMan affected kids born in the eighties, we should by now have a bunch of teenagers who run around in darkened rooms eating pills while listening to monotonous electronic music."

        U Offline
        U Offline
        Ulf Ohlen
        wrote on last edited by
        #4

        Stephane Routelous wrote: Are you sure that no other VC is running ? Yes. It happens to me sometimes when VC crash, I need to kill it with the Task Manager. I've had that problem too, but I don't think they are related. I get the error even without a crash.

        N 1 Reply Last reply
        0
        • C Chris Losinger

          I see this a few times every day. Yes, i think it is a Win2k issue. It is really annoying. Even worse than source files, it can sometimes happen in the Class Wizard - and i've actually lost entire source files because of this one. I think CW does its work with temp files. When you make a change, CW creates and modifies a temp file, blows away the original file and tries to copy the temp to the original's name. Sometimes, CW will fail to copy the temp file back, after it has killed the original. The only chance of recovery is to find that temp file. Great fun. -c


          Smaller Animals Software, Inc.

          N Offline
          N Offline
          Nish Nishant
          wrote on last edited by
          #5

          I had a weird problem recently. I was closing VC when it asked me to save a file [this puzzled me no end as I thought I hadnt made any source changes], I clicked yes and forgot abt it till I reopened the project and found that one of my cpp files was now a zero byte file. I doono how or why it happnd. Luckily I had a 2-day oldbackup, so not much damage done. Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

          M 1 Reply Last reply
          0
          • U Ulf Ohlen

            Stephane Routelous wrote: Are you sure that no other VC is running ? Yes. It happens to me sometimes when VC crash, I need to kill it with the Task Manager. I've had that problem too, but I don't think they are related. I get the error even without a crash.

            N Offline
            N Offline
            Nish Nishant
            wrote on last edited by
            #6

            Yeah, check task manger and see if you see some orphan vc instances running [they are called vcspawn instances]. This happens some times when your program crashes in debug-run mode and takes vc down with it. Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

            1 Reply Last reply
            0
            • S Stephane Routelous

              Are you sure that no other VC is running ? It happens to me sometimes when VC crash, I need to kill it with the Task Manager. Stephane "It is ridiculous to claim that video games influence children. For instance, if PacMan affected kids born in the eighties, we should by now have a bunch of teenagers who run around in darkened rooms eating pills while listening to monotonous electronic music."

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #7

              Sometimes I have open Visual Studio three times at one time,..never had this problem although I have Win2k

              1 Reply Last reply
              0
              • N Nish Nishant

                I had a weird problem recently. I was closing VC when it asked me to save a file [this puzzled me no end as I thought I hadnt made any source changes], I clicked yes and forgot abt it till I reopened the project and found that one of my cpp files was now a zero byte file. I doono how or why it happnd. Luckily I had a 2-day oldbackup, so not much damage done. Nish Sonork ID 100.9786 voidmain www.busterboy.org If you don't find me on CP, I'll be at Bob's HungOut

                M Offline
                M Offline
                Michael P Butler
                wrote on last edited by
                #8

                I've had the one happen too. Never did figure out how it happened. Michael :-)

                1 Reply Last reply
                0
                • U Ulf Ohlen

                  MSVC has started to report this error when I try to save source files. It occurs maybe one time out of three, even if I have only one instance of VC running. Very annoying. Has anyone else had this problem with VC6/Win2000? Is it a known bug in VC? I found nothing on MSDN. It might be a Win2000 problem, I've never seen it under Win98.

                  M Offline
                  M Offline
                  Mike Nordell
                  wrote on last edited by
                  #9

                  Considering MSVC is the app that gave me a dialog
                  An unnamed file has an invalid path
                  I'd say it's a problem with MSVC. There are also known issues with MSVC heap management and W2k (read: bugs in MSVC6). The way to fix it was apparently to tweak some key under HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options (I'm still waiting for "Previous Version", "Obsolete Version" and "Next Version"). You might get lucky searching MSDN. /Mike

                  1 Reply Last reply
                  0
                  • U Ulf Ohlen

                    MSVC has started to report this error when I try to save source files. It occurs maybe one time out of three, even if I have only one instance of VC running. Very annoying. Has anyone else had this problem with VC6/Win2000? Is it a known bug in VC? I found nothing on MSDN. It might be a Win2000 problem, I've never seen it under Win98.

                    N Offline
                    N Offline
                    Not Active
                    wrote on last edited by
                    #10

                    I've had the same problem also. I can have two instances of MSVC with two different projects, one gives me the error, the other does not. The good news is its fixed in the next version. :laugh:

                    1 Reply Last reply
                    0
                    • U Ulf Ohlen

                      MSVC has started to report this error when I try to save source files. It occurs maybe one time out of three, even if I have only one instance of VC running. Very annoying. Has anyone else had this problem with VC6/Win2000? Is it a known bug in VC? I found nothing on MSDN. It might be a Win2000 problem, I've never seen it under Win98.

                      P Offline
                      P Offline
                      Pizzor2000
                      wrote on last edited by
                      #11

                      Do you have Norton Antivirus installed? Since I installed Norton 2003 on my XPPro machine, I started getting this error, too.

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups