LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Distribution doesn't work on some XP systems

I have created a distribution with CVI 8.1 and also CVI 8.5.  The installer works fine, but then my program fails to start on some computers.  It gives the error "The application failed to initialize properly (0xc0150002).  Click OK to terminate the program"  On my dev machine the program works fine as well as several others.   Anyone have an idea of what might be going wrong?
0 Kudos
Message 1 of 3
(3,424 Views)

Hi Derek_C,

Typically I have seen that error when certain dependencies that your application needs can't be found. For example, suppose you statically linked to a DLL and that DLL can't be found on the target machine. When the application tries to load, it will also try and load the DLL. If the DLL can't be found, then an error is thrown.

It makes sense that it might work on your dev machine since it probably contains all the needed dependencies.  You could use a tool like Dependency Walker to see what static dependencies you have.

Once you have figured out what files you need, make sure to include them in your installer.

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
0 Kudos
Message 2 of 3
(3,419 Views)
I was actually looking at similar ideas before your post and was able to fix the problem.  A dll that I had included was accidently compiled in debug mode so it was looking for msvcrtd.dll which this target machine didn't have.  I recompiled my project with a release version of the dll and the new distribution worked.  Thanks for the fast response.
0 Kudos
Message 3 of 3
(3,415 Views)