The Linux Page

The application was unable to start correctly (0xC0150002). Click OK to close the application.

On MS-Windows, you get really strange errors and at times some of those errors are difficult to fix.

Sams Teach Yourself C++The error 0xC0150002 means that a DLL could not be loaded and thus the software could not get started since a piece of it was missing. The only solution is to "close the application" (since it wasn't really started, closing it sounds a bit funny here.)

There are several ways to find out about the problem. In Visual Studio, the output should tell you what is happening and that a library could not be loaded. However, many times, low level libraries will not be displayed in the output window.

The solution, because it is written somewhere... is to go and check out the event log in Windows. That will give you the exact error. Restart your software and see that it indeed creates a new error and see what file is missing.

One of the most usual error is a missing debug library. Somehow, MS-Windows needs a huge amount of debug libraries to run a debug version of a software... Linux may not give you any debug information, but a debug version works on all my Linux systems. Why am I using MS-Windows anyway?!

In my case the culprit was Qt4 which was compiled with VC version 9.x when I was using VC version 10.x. The debug libraries of VC 9.x were required by Qt4.