The file "Bin\debug\windowsformsapplication2.exe" is being used by another process, so the process cannot access the file.

Source: Internet
Author: User

Http://zhidao.baidu.com/question/221394579.html?qbl=relate_question_2&word=%BE%AF%B8%E6%094%09%CE%B4%C4%DC %bd%ab%22obj%5cx86%5cdebug%5c%b5%e7%d3%b0%bc%c7%c2%bc%b9%dc%c0%ed%cf%b5%cd%b3.exe%22%b8%b4%d6%c6%b5%bd%22bin% 5cdebug%5c%b5%e7%d3%b0%bc%c7
Obviously this is because you have just run the program in debug mode!
And then you simply click on the x to turn it off, which shows a problem,
Your program in the exit code part of the problem, causing yourself to point X to turn off the interface after the process has not been finished!
So when you're going to build the EXE for the second time because the process that started generating that EXE is running, it can't be written!
It is recommended that you add the code of the release process to the End function of the program. Of course, you will need to find the process Manager to WindowsFormsApplication2.exe and end it before you can regenerate the program.
Http://zhidao.baidu.com/link?url=05DrgqcB7yFsApyaXmuitG4LY1uVjqc8dMyMm3xybMq3fR-Q6RBu01-T-5BWTXCigUoupPzyCDxkuRlCecPLyK
This statement indicates that the WindowsFormsApplication9.exe you generated is still running, not completely closed, and may be caused by:
1. Use this. Hide (); Hides the form instead of actually closing the form.
2. The form is not closed.
Workaround:
1. Use Application.exit () in the right place; close all processes of the program.
2. Open Task Manager and manually end WindowsFormsApplication9.exe this process
3. Restart the computer (tried, effective)


The file "Bin\debug\windowsformsapplication2.exe" is being used by another process, so the process cannot access the file.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.