Text as its name, two different tasks recently encountered such a problem, that is, the program running the release version under vs can run normally and directly execute the EXE file will have a problem, in addition, the frequency of occurrence on different computers is also different. At first, I was puzzled and thought it was a code problem. Later, I was bored and suspected that vs may use the compatibility mode when running the release version program. Right-click the EXE file to open the file properties, go to the compatibility page, and check the option "run this program in compatible mode". After confirmation, there is no error in running the program! After testing for 100 times, I still did not see the same error as before, so I determined the cause of the problem. You can't finish it !!!
If you run the release version in Vs and run the EXE file normally, problems may occur.