NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Releas object reference, garbage collection

Hello NI Engineers,
 
Does NI Test Stand have a garbage collector?
 
meaning: if i have .net object reference (MyDotNEtObj = .Net)
i want to realse this object therefor im writing the follow code inside a Statment step:
MyDotNetObj = Nothing
 
does it cause to memory leak or maybe there is a garbage collector that recognise this object and automatic realse this object from the memory?
 
thanks, Yaniv
0 Kudos
Message 1 of 2
(3,232 Views)
This just removes that teststand variable's reference of the .NET object. Once all .NET references to a .NET object are removed, it's still up to the .NET framework (not teststand) to free that memory with its garbage collector.

Hope this helps,
-Doug
0 Kudos
Message 2 of 2
(3,220 Views)