LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows/CVI crashed when building distribution kit

The CVI crashed repeateadly when I tried to build a distribution kit. It first pops up a message box telling me that there is a new file included in the project. It's a DLL needed for the project to run.  When I pressed OK it will crash with a final message:
 
"Recoverable Internal Error at 001B:10203768.
LabWindows/CVI will be aborted."
 
But if I de-selected the included DLL file, it will build ok. But, obviouslyl, the DLL file is not included in the final distribution kit so that I have to manually copy it in order for my software to run.
 
I'd appreciate if you have any suggestions for walkaround. I'm using CVI 7.1. Many thanks!
 
regards
Shef
0 Kudos
Message 1 of 6
(3,609 Views)
Are you able to include any DLLs in a distribution kit or are you just having trouble with this one DLL?  Is this DLL something you built or is it a 3rd party library?

I'm going to install CVI 7.1 and try building a distribution kit that includes a DLL and see if I run into any problems. 
Kristen
National Instruments
0 Kudos
Message 2 of 6
(3,584 Views)

Dear Kristen,

Hope you've had a good Memorial Day holiday, and thanks for your reply.

I built this DLL from another LabWindows/CVI project (using UDP library). Then I add the .LIB file in the project in order to use the DLL.  When I select the menu item to "Create Distribution Kit...", it pops up a message box saying that there is a new file added, do you want to include it in the kit, and checked by default. If I press OK now, it will crash. But if I deselected the file, it will show me the usual steps to build distribution kit. This is the only DLL that I include, in addition to all the system DLL's that are automatically included in the distribution kit.

I appreciate your help and Let me know what you find. Thanks!

 

0 Kudos
Message 3 of 6
(3,546 Views)
Hello Shef,

I was able to reproduce your crash.  I started with the simple dll example that ships with CVI.  This already has the .LIB included in the project, so when I went to Create the Distribution Kit I had no problems.  But, if I remove the .LIB from the project, open the Create Distribution Kit dialog, then close it, then add the .LIB back to my project, and open the Create Distribution Kit dialog again then I get your error. 

So, it seems if you have ever tried to create a distribution kit of that project before you added the .LIB, then after you do add the .LIB it will never be able to include the .DLL in the distribution.  I had to create a new project and add all the files back in (including the .LIB) and then it was successfully able to add the DLL to the distribution kit without crashing.  Hopefully, your project does not have too many files and this will not be too hard for your to do.

This crash does not happen in later versions of CVI than 7.1.1 because creating distributions is done totally different.

Let me know if you have any questions.
Kristen
National Instruments
0 Kudos
Message 4 of 6
(3,522 Views)

Thanks for your investigation Kristen!

The .LIB file was indeeded added later on, so you are right on the point.

Also, I've found that I could add the DLL file explicitly to the "File Group" in the "Create Distribution Kit" dialog, along with the excutable and some other files. After that, it would not remind me the new DLL file to be added. I have successfully created the distribution kit with all necessary files included.

Thanks for your persistent effort. It was great to know that the support is still available. I may consider to upgrade my CVI sometime soon.

By the way, how many people are still using LabWindows/CVI nowadays, roughly?

0 Kudos
Message 5 of 6
(3,517 Views)
Hi Shef,

Your workaround is much better than mine.  I did not even think to try that.  Glad we got your distribution working.

I'm not sure how many people are using CVI, I'll see what kind of answer I can get.
Kristen
National Instruments
0 Kudos
Message 6 of 6
(3,488 Views)