Visual studio进程无法复制文件 [英] Visual studio process Unable to copy file

查看:429
本文介绍了Visual studio进程无法复制文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Visual Studio 2010,当我运行项目正常运行,当我关闭窗口,然后进行一些更改和运行,他们说
错误5无法复制文件obj \x86 \Debug \Passport.exe到bin \Debug\Passport.exe,进程无法访问文件'bin \Debug\Passport.exe',因为它被另一个进程使用。Passport



我在Passport.exe仍然在任务管理器中看到。为什么?
(当我结束那个过程,我可以建立项目)



注意对于我的其他项目没有这个问题,只有这个。



非常感谢你可以帮助:)

解决方案

但基本上它归结为你的护照程序或它的一个孩子过程,不是关闭,只要你关闭窗口。



要检查的事情:
1.额外的线程不被终止(工作线程不完成等)
2.调试,断点导致关闭过程挂起。



首先我将删除所有断点,然后看看你可能正在运行的进程可能阻止进程关闭例如工作线程,文件写入,硬件访问。



有时最好在Visual Studio中使用停止按钮终止进程。


i have a visual studio 2010 , when i run project normal runs, and when i close window then make some changes and run, they says "Error 5 Unable to copy file "obj\x86\Debug\Passport.exe" to "bin\Debug\Passport.exe". The process cannot access the file 'bin\Debug\Passport.exe' because it is being used by another process. Passport"

as i see in Passport.exe still in task manager. why? (when i end that process again i can build project)

NOTE for my other projects no that problem, only for this.

Many thanks who can help :)

解决方案

There are many reasons why this could happen, but basically it boils down to your passport process or a child process of it, not closing as soon as you "close the window".

Things to check: 1. Extra threads not being terminated (worker threads not complete etc.) 2. Debug, breakpoints causing closure process to hang.

First I would remove all breakpoints and then look at what processes you may be running that could be holding up process closure e.g. worker threads, file writing, hardware access.

Sometimes it's best to kill processes using the stop button in Visual Studio.

这篇关于Visual studio进程无法复制文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆