LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tab activate inactive controls

Solved!
Go to solution

Jeff Bohrer wrote:

close.PNG

For speed I did not use the close referance vi in my example.  This leaves the referances in memory and is poor programming.  When you open a refnum close it when your done-like the fridge door.  Since I sent an example with poor practice- I brought attention to it


Of course NI can change thing and invalidate the following some time in the future...

 

You only have to close the dynamic refs. The static refs (refs who's value when type cast as a U32 are always the same) are handled by garbage collection. In fact all are closed by garbage collection, but the the dynamic ones will use memory for each ref and over time will manifest themselves as a memory leak.

 

But if not sure, close em.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 11 of 13
(1,065 Views)

Jeff - That did the trick.  Thank you.

Ben - Thanks for trying.

Rick

 

0 Kudos
Message 12 of 13
(1,063 Views)

as a total aside!

 

Ben you gotta get your precognision checked! Smiley Very Happy


"Should be" isn't "Is" -Jay
Message 13 of 13
(1,049 Views)