LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

After creating distribution kit and installing, software crashes on launch

The software I've been working on builds and runs properly in LabWindows 8.5.0, and I've been working on creating a distribution kit by following this guide and the one in the support pages on ni.com. The installer builds successfully, and I can install the software on other computers just fine. However the software crashes immediately on launch, with the typical Windows XP "SOFTWARE has encountered a problem and needs to close."

 

I'm not sure how to troubleshoot this.

 

For reference:

- Built on Windows 7 x64, LabWindows 8.5.0.

- Running on Win XP x86.

- Software uses sockets (WSock32.lib), but no other DLLs beyond the basic LabWindows Run-Time.

0 Kudos
Message 1 of 2
(3,349 Views)

It could be because the run-time didn't get installed properly. You can try comparing windows\system32\cvirte.dll and the contents of the windows\system32\cvirte folder between your development computer and your target computer to make sure that they are the same (keep in mind that the paths are different in your development computer: windows\syswow64\cvirte.dll and windows\syswow64\cvirte).

 

Also, make sure that you are able to run a release-build version of your program in your development computer to confirm that this is a distribution problem and not just a release vs. debug problem.

 

Make sure that you are building and deploying a 32-bit version of your program, not a 64-bit.

 

Finally, you can always remote debug your program to see if you can narrow down where the crash is happening. Here are some instructions on how to do that (the instructions are for CVI 9.0, which is the oldest version for which I could find documentation online, but it should work the same way in 8.5).

 

Luis

0 Kudos
Message 2 of 2
(3,299 Views)