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

Error -143 Occurs When Running a Deployed CVI Program Using an ActiveX control

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

Problem:
I have built a distribution of an application that uses an ActiveX control. However, when I deploy this application to a clean machine and try to run it, I get the error:

Error in call to LoadPanel.

Parent Panel Handle: 0
UIR File Name: FileName.uir
Panel Resource ID: 1

Error Code: -143

ActiveX Control Error


After dismissing this dialog, my program does not run. Why does this happen, and how can I best work around this issue?

Solution:
This occurs because the ActiveX container has a dependency on the Visual C++ runtime that the distribution kit does not know about. Because of this, if the target computer does not already have the Visual C++ runtime installed, the application using the ActiveX control will fail.

To work around this issue, add the attached merge module to your distribution. This can be done by selecting the Drivers & Components tab, and then clicking the Add Merge Module... button. This merge module will install the Visual C++ runtime as required by the ActiveX container.

The other option to solve this issue is to install the Microsoft Visual C++ 2005 Redistributable Package on the target machine.

Related Links:
KnowledgeBase 3OPEORS9: Why Do I Get Error -143 When I Call my CVI DLL from TestStand?

Attachments:


Microsoft_VC80_CRT_x86.msm


Report Date: 05/26/2009
Last Updated: 05/26/2009
Document ID: 4XPBOIXU

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