Panel, Menu Bar, Control Handle Is Invalid in LabWindows/CVI Distribution

Updated Nov 26, 2024

Reported In

Software

  • LabWindows/CVI

Issue Details

  • When deploying my LabWindows/CVI distribution I am getting the following error. The program works fine in the development environment. Why is this happening?

Panel, menu bar, or control array handle is invalid 

 

 

 

 

 

Error in call to LoadPanelAnsi.

Parent Panel Handle: -4

UIR File Name: panels.uir

Panel Resource ID: 4

Error Code: -4

Panel, menu bar, or control array handle is invalid 

Image_2024-11-26_11-20-57.png

 

Solution

This issue happens in build distributions when the proper panel file is not included in the distribution. It can also happen when the distribution is corrupted. To solve this issue, follow the next suggestions:

    • Make sure any .uir file called in the code is also added in the Destinations section. .uir files are added by default on new distributions.

  • To solve potential issues due to corrupted distributions, recreate a new distribution using the same base files.