LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Closing references to front panel objects

Short version of my question: are programmatically generated references to front panel objects (controls, etc.) automatically disposed of when the VI exits?

 

More details: I'm recursively retrieving references to all the controls on the front panel.  (I say recursively because I'm also getting the individual controls from clusters, subclusters, and so on.)  I then return an array of control references, which does not include the references to clusters--only standalone controls or the actual controls themselves contained in clusters.

 

Do I need to explicitly close the references to clusters that this VI generates, or is it unnecessary since the VI will run briefly, return an array, and then exit?

 

Or another scenario: in a subVI I open a reference to the parent VI.  Do I need to close that reference at the end of the subVI, or is it pointless because the reference will be disposed of when the subVI exits anyway?

 

(I did find this article, which I think addresses my question, but I'm not sure.)

 

Thanks,

peppergrower 

0 Kudos
Message 1 of 2
(2,459 Views)