C # program after double-click Run, the interface does not display, but in Task Manager there is a process (a WinForm to find a bug trip)

Source: Internet
Author: User

Recently the client has a wonderful thing: http://q.cnblogs.com/q/43038/like this Bo asked. One of my clients on the computer program opened, the process also has, that is, the interface form does not come!!!

I am Win7 is a development machine, three or four test virtual machine, are XP. can be run perfectly. But the customer is so many problems arise, who call the software users more, there are more than 10,000 users. Then there will be more than 10,000 of the wonderful computer, 50% of the xp,50% win7. Win7 Since there is no matter, the problem is basically XP caused. It's really a murder caused by XP. The general idea at the beginning is whether the client's runtime is correct, the result is a 2.0 program, 3.5 is installed, or the run fails. Describes a problem that is not. Net. Then began to find the third-party DLL problem, the result is already initialized successfully, cut the global is not saved (there is a global log record). Suddenly feel very no solution. After that, we start the binary method of log. First look for the initialization problem. Program.cs log finish, found in Application.Run () is running, that is, but the method is not run down, that is, the form of the constructor inside the log, found that the InitializeComponent () method after the log appears , but previously there was a log, and then began to look at the long Initializecomponen initialization file (we all know that the file is not too long for complex forms). Kung Fu is not a conscientious, after a long two-way search, and finally locate a font is a problem (also thanks to the customer's cooperation). The original is my client does not have Microsoft ya black This font, resulting in the rendering when the direct operation can not go on, and also do not error, directly die where. Finally, the Microsoft Black font is installed directly on the client and is resolved. From error to resolution, an afternoon passed. The question is also interesting ah!!!

C # program after double-click Run, the interface does not display, but in Task Manager there is a process (a WinForm to find a bug trip)

Related Article

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.