有没有更好的方法来保存Visual Studio中的文件?

发布于 2025-01-26 14:55:44 字数 239 浏览 3 评论 0原文

在对xyz.cpp文件进行了一些更改之后,当我尝试保存整个项目时,它要求将文件保存在目录中,最终没有保存,并且出现了错误消息,因为

该过程无法访问文件“ c:\ ml/src.cpp”,因为它是由另一个过程使用的。

通常,为了摆脱此错误,我用来打开另一个.cpp文件并在其中进行一些货币,然后尝试保存,以便其他未保存的文件可以通过此保存,有时效果不佳。 想知道是否有更好的处理方法?

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?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

东京女 2025-02-02 14:55:44

您应该:

  1. 下载 processexplorer

  2. 查找句柄或DLL

  3. 导航到您的文件路径:

ProcessExplorer会告诉您正在使用/阻止文件。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文