From: Amit Ahuja on
Hi,
I have developed a VI in which I am using queues,arrays and Global variables. When I stop this VI,  I want to release all the memory for

- Queue

- Array

- Local variables

If I use relese Q operation for releasing queue memory then will it do the job? Also if VI is stopped all local variables will be removed from memory. Is my understanding correct?
 
 
From: JeffOverton on
Release queue will deallocate the memory automatically, and arrays and locals are automatically handled, but you may want to watch out for <a href="http://zone.ni.com/reference/en-XX/help/371361D-01/lvhowto/globalvarskeepcopysofdata/" target="_blank">memory performance</a> when you use globals with arrays.&nbsp; In most cases, globals and locals can be replaced by wires or action engines, which are more efficient and reduce race conditions.