[Solved] The application cannot be started normally, please click OK to close the application

This problem occurred when I was developing, I used Debug x64 to compile, and the result was compiled successfully. After compiling with Debug x86, the compilation failed. After the compilation failed, I slowly debugged and found this error.
insert image description here

solution

  1. Make sure you have the correct version installed and your development environment properly configured.
  2. Check that your application is referencing the appropriate DLL files. If not, add a reference to the required DLL file and include it in the output directory.
  3. Check that your application has correctly installed the required runtime libraries. The runtime library should match the compiler and operating system you are using.
  4. Missing DLL
    files can be found by using tools like Dependency Tool or Process Monitor. Using these tools can help you locate the problem and determine which DLL files are missing.
  5. Confirm that you have copied all necessary files (including SQLite DB files, configuration files, etc.) to the correct folders.
  6. Try recompiling the application in Release mode, this may sometimes fix the problem.

Guess you like

Origin blog.csdn.net/m0_37149062/article/details/131050295