NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

find memory leakage when passing Object Reference from Teststand to vi

Solved!
Go to solution

I am using Teststand to call labview vi, and pass ThisContext of sequence to vi as object reference, but if I just loop this step and I can find the memory using keep increasing, how can I avoid the memory leakage inside the vi.

 

see my vi, it is to post message to UI.

Capture.PNG

0 Kudos
Message 1 of 2
(4,353 Views)
Solution
Accepted by Bendy227

You should be using a close reference node to close the references you get as a result of an invoke. In the code below you should be closing the references you get from the following:

 

AsPropertyObject

Thread

 

Close those two references once you are done with them.

 

Also make sure you turned off result collection in your sequence or you will be using up memory continually for the step results.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 2
(4,315 Views)