10-26-2009 08:00 PM
I have a vi that I am running under LabVIEW 8.6. Most of the time the memory usage is listed as :
Front Panel Objects 184.7
Block Diagram Objects 696.3
Code 145.3
Data 2726.1
Usually when I run the vi the data usage goes up by about 20 K then stabilizes. About 1 time in 10, though, when I run the vi the data usage goes to greater than 1.5 Gigabytes and LabVIEW usualy crashes or misbehaves after that. This happens within seconds, using the same default values that usually work fine. I don't think this is a case of memory leaks or memory mismanagement because the memory use should be the same every time the vi runs, and there is no way it can go that high that fast. If the vi runs OK once, I can stop it and start it and run it forever with no problems and no increase in memory use. If it shows the high memory use once, then everything is hosed until I restart LabVIEW.
What could cause erratic behavior like this? I have tried it on two different computers with the same result. The vi is a bit complex, so it would be difficult to post it here.
10-27-2009 03:27 AM
Without the code this question is nearly impossible to answer. In my experience, LV does not simply eat up memory like this on its own. Never seen this.
So here my assumption:
You handle large memory sets and there is a possible race condition in its access leading to several copies of the data set. So getting rid of the race condition is the way to get rid of the memory hog.
Please post the VI in order to do some proper analysis. Everything else is pure speculation.....
hope this helps,
Norbert
10-27-2009 07:03 PM