Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Why Does LabWindows/CVI 7.1 Crash When I Build a Distribution Kit for a Program that Calls a DLL?

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
LabWindows/CVI crashes when I try to build a distribution kit. It first pops up a message box telling me there is a new file added to my application since I last created a distribution kit. It's a DLL needed for the project to run.  When I pressed OK LabWindows/CVI will crash with the following message:

Recoverable Internal Error at 001B:10203768. LabWindows/CVI will be aborted.

But if I de-selected the included DLL file, it will build without error. However, 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.
What can I do to fix this?


Solution:
De-select the DLL when the Update Distribution Kit Files dialog asks if you want to add it to the distribution.  Instead, in the Create Distribution Kit dialog, manually add the DLL to an existing or new File Group.  After adding the file manually the Distribution Kit will not longer prompt you to add the DLL and will no longer crash CVI.

This crash is seen if the project had been created into a distribution kit previous to the DLL being used in the application, and then later the LIB is added to the project and the DLL is used.  You may run into this crash when building the distribution kit. 

The distribution framework was changed in CVI versions 8 and higher.  As a result, this crash does not occur in these later versions.

Related Links:
Developer Zone Tutorial: Customizing Create Distribution Kit Installers in LabWindows/CVI

Attachments:





Report Date: 07/17/2008
Last Updated: 07/31/2008
Document ID: 4NGHRE0R

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit