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

192 Views Asked by At

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

There are 1 best solutions below

0
On

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.