Windows Application presents startup error (0xc0150002) on some systems
Posted on 2011-10-18
I have a Visual Studio 2005 application that runs on some systems but not others. The application ships with 4 dll files that reference other dlls. These called dlls should be part of the system environment, which is the case on the machines that work.
As a temporary fix, we built the exe so that all the dll code was contained in it. It runs fine under that circumstance. But we don't wish to leave it that way.
I have two systems set up for testing - one that works and one that doesn't. Both are Windows7-64 OS. Also, I had a third non-working Windows7 disk, but installing Visual Studio 2011 beta seemed to fix it. I can't use this approach for deployment however....
I ran sysinfo and compared the process internals on the working system with the non-working system. The first thing that jumps out is that the path is different between the two. Although they have pretty much the same folders in the path list, the order is not the same between them.
There may be other differences as well, this is just the first one I noted.
What can I do to isolate this somewhat random error and fix it ion standard win7 machines?