无法将文件“obj\Debug \ banksys.exe”复制到; bin \Debug \ banksys.exe;。 [英] Unable to copy file "obj\Debug\banksys.exe to ;bin\Debug\banksys.exe;.

查看:93
本文介绍了无法将文件“obj\Debug \ banksys.exe”复制到; bin \Debug \ banksys.exe;。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一次又一次地收到这个错误。每次我在我的应用程序中进行更改,当我第二次调试我的应用程序时,这个错误就会出现。只有摆脱这个错误才能注销电脑然后再次登录。



有谁能告诉我为什么这个错误会一次又一次地出现,以及如何摆脱这个错误。

I am getting this error again and again. Every time I make changes in my app and when I debug my application second time this error comes in. Only to get rid from this error is to logoff the pc then login again.

Can anyone tell me why is this error coming again and again, and how to get rid of this.



错误1无法复制文件 obj \Debug \ banksys.exe to; bin \Debug\banksys.exe;。进程无法访问文件'bin \Debug \ banksys.exe',因为它正被另一个进程使用.bankys




Error 1 Unable to copy file "obj\Debug\banksys.exe to ;bin\Debug\banksys.exe;. The process cannot access the file 'bin\Debug\banksys.exe' because it is being used by another process. banksys

推荐答案

情况并非如此。通常情况下,重新编译应用程序,在调试器下运行的进程会自动终止,所以它不会造成任何麻烦。



你看到的只有一件事:你有一个bug,还有一个漂亮的微妙的。不知何故,自动终止您的应用程序不会阻止其他事情。这种情况发生了s,但很少,并且通常与您加载的第三方可执行模块(很可能是非托管)有关,这些内容是您未在解决方案中构建的。你有类似的东西吗?我没有足够的信息可以说更多;但你有一个大致的想法。



-SA
This should not be the case. Normally, if you recompile your application, the process running under debugger is automatically terminated, so it should not cause any trouble.

What you see means only one thing: you have a bug, and a pretty subtle one. Somehow, automatic termination of your application does not stop something else. This happens, but very rarely and usually related to third-party executable module you load (most likely, unmanaged), something which you don't build in your solution. Do you have something like that? I don't have enough information to say more; but you have a general idea.

—SA


我偶尔遇到同样的问题,我找到了一条路避免重启,大部分时间都可以工作。虽然它有点激烈,但正如已经说过的那样,可能是由一个微妙的错误造成的,你应该试着解决。



*****警告*****

您自行承担风险。



1.关闭除VS以外的所有其他应用程序

2.启动任务管理器。

3.在应用程序选项卡上查看您的应用程序是否存在,如果存在,请选择它,然后单击结束任务按钮。

4.切换到进程选项卡。查找 yourappname.vshost.exe 的所有实例,选择它们并单击结束进程。可能有多个,所以检查整个列表。



这使我免于在Win XP上重启99/100次。我不知道它是否适用于其他操作系统。
I have occasionally had the same problem and I have found a way to avoid having to reboot that works most of the time. It is a bit drastic though and as has already been said, is probably caused by a subtle bug, which you should try to resolve.

***** WARNING *****
YOU DO THIS AT YOUR OWN RISK.

1. close all other applications except VS.
2. Start Task Manager.
3. On the 'Applications' tab see if your application is there and if so, select it then click the 'End Task' button.
4. Switch to the 'Processes' tab. Look for all instances of yourappname.vshost.exe, select them and click 'End Process'. There may be more than one, so check the whole list.

This saves me from having to reboot 99/100 times on Win XP. I have no idea if it works on other OSs.


您是否正在尝试覆盖正在运行的程序的EXE?因为它在执行时被读取锁定,这意味着没有删除,没有重命名,没有写入。
Are you trying to overwrite the EXE for a program that is running? Because it is read locked while it executes, which means no delete, no rename, no write.


这篇关于无法将文件“obj\Debug \ banksys.exe”复制到; bin \Debug \ banksys.exe;。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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