The problem is very simple, but it is not that easy to find the problem. This is only the cause of my problem. A lot of foreign discussions were referenced during this period. Many foreign users encounter this problem due to the following reasons:
1. Use of unmanaged code or modules;
2. the file to be accessed does not exist;
3. No permissions (mainly for Versions later than Windows Vista );
4. Compile optimization errors and disable related optimization options;
5. Too many controls (mainly Error creating window handle );
I changed the attributes in manifest a few days ago and added the following:
<Dependency>
<Dependentassembly>
<Assemblyidentity type = "Win32" name = "Microsoft. Windows. Common-Controls" version = "6.0.0.0" processorarchitecture = "*" publickeytoken = "6595b64144ccf1df" Language = "*"/>
</Dependentassembly>
</Dependency>
This Code allows the general controls to change the style from the system (of course, this is actually a permission issue ). Remove the code.