Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6524

Unload VIs from Memory to get rid of memory leaks?

$
0
0

Hello Community,

 

The problem I'm facing is that after running my sequence for couple days Windows starts running low on memory and eventually an error occurs. In the resource monitor I can see that about 95+% of the memory is reserved and it frees up if I click to the "Unload All Modules" in the File menu. I believe this pretty much confirms that I'm facing with memory leaks so I assume that I can unload my LabVIEW modules programmatically by executing the following command in TS:

 

RunState.Engine.UnloadAllModules()

 

I have a framework sequence which calls subsequences as "New execution". For example I have subsequence which starts displaying a continuously updating graph. As an experiment I have started my framework and executed the command above after I have called the graphing subsequence. I have expected that the graphing window will either disappear, but at leasts stop working, but nothing happened.

 

So can you explain me what does this UnloadAllModules() command does and what is its scope exactly?

 

Thanks.


Viewing all articles
Browse latest Browse all 6524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>