Is there a better way to Save the files in Visual Studio?

After making some changes in xyz.cpp file, when I am trying to save the whole project it asks to save files in the directory and ultimately it didn't get saved and an error message comes as

The Process cannot access the files "c:\ml/src.cpp" because it is being used by another process.

Usually to get rid of this error I use to open another .cpp file and make some chnages in that and then try to save so that other unsaved files gets save with this and sometimes it didn't work well. was wondering if there is any better way of handling it?

1 answer

  • answered 2022-05-05 10:00 Landstalker

    You should:

    1. Download ProcessExplorer

    2. Go to Find -> Find Handle or DLL
      enter image description here

    3. Navigate to your file path:
      enter image description here

    ProcessExplorer will tell you wich process are using/blocking your file.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum