01-17-2015 02:16 AM
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.
Solved! Go to Solution.
01-20-2015 09:44 AM
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