Jun 17 2008

Application not initialized correctly (0xc000001d) error and VS2005

Classified in: C/C++, Microsoft, Programmingpaomic at 4:53 pm

While trying to transfer an application created using VS2005 to an embedded PC (VIA C3 M 10000 embedded PC), I run into this very annoying problem. First, I got a slightly different exception, which was due to the msvcr80.dll file missing. So, I used the VS20005 redistributable to deploy the application. But my journey through the DLL hell was only at the beginning, because I got this very strange error. I got this only in the release version of the application, while the debug one worked fine. Using dependency walker, I could check that all the necessary DLLs were there, so I didn’t know what was this. After a couple of days of googling, and an incredible number of rebuild and solution clean, I finally found out that it was due to a DLL (created by me) being compiled in release mode with support for SSE2 istruction set, which was not available in the VIA CPU (it seems that it only supports 3DNow! ones). After removing the SSE/SSE2 optimization, everything worked fine!

Tags: