Analysis of the x.vshost.exe file generated by vs Compilation

Source: Internet
Author: User
Tags hosting

Visual Studio 2005 and later versions will compile x.vshost.exe with the same name

When debugging and running, the process starts first

Become a hosting process, which is translated as a host process

This process is mainly used for debugging, which can improve the execution efficiency of debugging, and perform expression operations and partial-trust debugging during design.
Improve debugging efficiency:
The topic (vshost.exe) creates an application domain associated with the current application debugger. to execute this operation, you will obviously start debugging to the application.ProgramTime Between startup, but the host process can use this application domain to improve debugging efficiency and save the status of the application domain and debugger during application running.
Expression operation during design
Now you can do this in the immediate window without running the application.CodeTest.
Debug partial trust
Applications can be specified as a partial trustapplication on the project designer Security Settings page. These applications are specialized in the application domain, and vshost.exe is used to complete the transformation.

Possible BUG: The program .vshost.exe: managed has exited with code-1073741819 (0xc0000005 ).
Solution: Make the Application Path contain less than 128 characters, and the Application name contains less than 10 characters.

 

This process may impede the use of some special APIs. Therefore, you can cancel the process if necessary.
You can enable or disable it through project → properties → debug tab → enable the Visual Studio hosting process checkbox.

 

See: http://msdn.microsoft.com/en-us/library/ms185331 (vs.80). aspx

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.