11-03-2011 09:47 PM
Hi,
I made a very simple VI with a while loop and a numeric control to show the iteration number of the loop.
I built an exe for it.
I run the exe and keep looking at the task manager. I see that the memory keep raising slowly. The way I can reduce the used memory is to minimize the window, then maximize it. After minimizing it, the memory drops by a lot (which is expected), however, after it's maximized again, the memory re-raised, only from a lower start.
Even if I minimize it, and keep it there, the used memory increased also.
I expect a constant used memory value.
Is it solely a problem of my code?
Please check the attachment for my code and the exe.
I am using LV8.6 with Windows server 2003.
Thanks,
Raymond
11-04-2011 12:15 AM - edited 11-04-2011 12:16 AM
Dear Raymond,
I think you are confused between wait and wait until Next ms Multiple function. If you replace your wait until Next ms Multiple function with Wait function this will resolve your issue.
11-04-2011 01:22 AM
Hi Raymond
I just downloaded the Untitled 2.vi file. It works fine on my computer and does exactly what I would expect it to do. Allthough I would probably change the false constant on the while loop termination to a control rather than using the Abort execution button.
What number does your Numeric indicator reach before you see any significant change in your memory usage?
/Sletten
11-04-2011 01:28 AM
@Himanshu Goyal wrote:
If you replace your wait until Next ms Multiple function with Wait function this will resolve your issue.
That statement makes no sense. Can you explain the logic behind it?
11-04-2011 01:38 AM
vgbraymond wrote:I made a very simple VI with a while loop and a numeric control to show the iteration number of the loop.
LabVIEW 8.6 is pretty ancient, so I cannot test (I also don't have the 8.6 runtime engine currently installed to test your exe).
Your post is very light on real information. Can you give some actual numbers for your observation. Does the memory increase by bytes, by kB, by MB, by GB??? What is the rate of increase in B/s, for example? How big is the change when you minimize/restore the window?
There should be no memory leak in your simple program. That would make very little sense. Do you run plain 8.6 or did you apply any patches? Is the run time engine 8.6.1 or 8.6?
How much memory do you have on the computer? How much is free? What else is running?