LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

invalid reference in executable

I have a large application with whose front panel has many controls\indicators.  As such, this main (top level) VI call many parallel mutithreaded subVIs that execute the main code, each of which must update\change particular controls\indicators depending on what's going on in the subVI.  To do this, I created a functional global that stores a reference to each (top level VI) control\indicator in an array along with a string array that contains their labels.  Because they are stored in an array, all the references are generic control references.

To update a particual top-level indicator from a subVI, I search the string array for the appropriate label, and then index the generic array.  I then create a strict reference constant (from the top-level VI control\indicator) and use that to typecast the generic reference with "To More Specific Class."  This gives me a local reference to the top-level VI control\indicator and allows me to update values, hide\show, and\or enable\disable these controls\indicators from the subVI.

This works great when I run the program from the LV developement environment.  However, when I compile the application to an executable, I get a -1055 runtime error (invalid reference).  Does anyone know why this is?
0 Kudos
Message 1 of 2
(3,053 Views)
Hi Yuri33,
 
Error 1055 is a generic error number and there could be many reasons why this is happening. The easiest way to figure out what is going wrong is by posting the code. Check if all the refnums/references are initialized properly. Also, check to see if the references are not closed prematurely. Which version of LabVIEW are you using?
0 Kudos
Message 2 of 2
(3,010 Views)