LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI Build Problems

I have a CVI application that has been in use for the last few years.  I made some minor changes to the program and tested it with no problem.  I am able to build both debug and release versions of the code with no errors.  I cannot, however, build a distribution of the program to install on the machine that actually runs this code.  If I add my existing .cds file from the Manage Distributions menu pick, I get an error message: "A custom control callback raised an exception".  If I attempt to create a new .cds file, I get the following message: "An unspecified error has occurred, probably due to corrupted data".  The same behavior occurred for both versions 8.1 and 8.5.  Thanks.
0 Kudos
Message 1 of 42
(5,132 Views)
If you start a fresh instance of CVI, open a sample project, create a new distribution, then try to build it, do you still get an error?  If so, at what point do you get the error?  Is it a distribution build error, or do you get the error while bringing up the Edit Installer dialog? Can you confirm that the directory C:\Program Files\National Instruments\Shared\MDF\Bin directory exists, and that it contains a bunch of files including MdfCommon.dll?

When did you begin having this problem? Have you ever been able to build distributions on this system?

Mert A.
National Instruments
0 Kudos
Message 2 of 42
(5,115 Views)
This is the first time I have seen this problem.  I haven't built a CVI project for a few months.  I had to replace my hard drive several weeks ago and reinstalled CVI at that time, so I haven't built any CVI distributions on my current system configuration.  When this problem first appeared last week, I installed CVI 8.5 (as I had just received the CDs), thinking that might fix the issue.

The directory C:\Program Files\National Instruments\Shared\MDF\Bin exists and contains several files, including MdfCommon.dll.  I tried to build a distribution for the gpibrw example project and saw the same error.  I built a release executable with no errors.  I then selected "Manage Distributions" from the Build menu, selected New from the dialog box, kept the defaults for the dialog, and hit OK.  Almost immediately, the "An unspecified error..." message appeared.
0 Kudos
Message 3 of 42
(5,080 Views)
I've created a modified version of cvi.dll that will print useful debugging info to a log file.  Please backup your CVI85\cvi.dll to a safe place then replace it with the attached version of the file.  Run CVI as you did before, following the same steps you described to get the error. You will then find "debuggingLog.txt" in your CVI directory.  Please post it back here and I'll take a look at it.  Depending on the issue, we may have to go through a couple iterations of this.  Once we figure out what's going wrong, we can figure out how to fix it.

Mert A.
National Instruments
0 Kudos
Message 4 of 42
(5,060 Views)
Here's the debug log file.
0 Kudos
Message 5 of 42
(5,051 Views)
Looks like the creation went fine, so the problem lies somewhere in editing.  I've extended the logging in the DLL. Please repeat and repost.  Thanks.

Mert A.
National Instruments
0 Kudos
Message 6 of 42
(5,047 Views)
Here's version 2 of the debug output.
0 Kudos
Message 7 of 42
(5,044 Views)
Round 3.  Thanks for your patience.

Mert A.
National Instruments
0 Kudos
Message 8 of 42
(5,036 Views)
Here's the latest.
0 Kudos
Message 9 of 42
(5,028 Views)
I think either you did not copy the last updated DLL over the other one (make sure to close CVI first, then restart it after the copy), or somehow you posted a stale log.  It is identical to the previous log, and one of the messages I changed still appears in its original form.

Mert A.
National Instruments
0 Kudos
Message 10 of 42
(5,021 Views)