有没有更好的方法来保存Visual Studio中的文件?
在对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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该:
下载 processexplorer
查找句柄或DLL

导航到您的文件路径:

ProcessExplorer会告诉您正在使用/阻止文件。
You should:
Download ProcessExplorer
Go to Find -> Find Handle or DLL

Navigate to your file path:

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