07-20-2012 05:18 AM
Hi,
I'm testing an application which uses IMAQ light meter, in a loop at 60hz. (vision project)
Memory usage increases in time, around 100kb a minute.
when I put a disable diagram around this light meter, memory usages stays constant in time (checked for half an hour)
This means to me, that in the Light Meter VI, something is wrong and causes a mem leak?
what could I do about that.
My applications needs to run 24/7 days a week, so I can't allow any memory leakage / increase.
Thanks for your responses
Bruno Sas
Solved! Go to Solution.
07-20-2012 05:57 AM
Can you show your code please? or at least a screenshot of it.
Tryin' to help
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
07-20-2012 06:02 AM
Yes, here it is;
the screenshot shows the light meter which is disabled; than there is no increase in memory usage in time.
If I remove the disable structure, mem usage grows gradually
Thanks for looking into this already
Bruno
07-20-2012 06:36 AM
For me it works stable
07-20-2012 06:42 AM
Got it. Seems to be memory usage increases when Timed loop used. Something wrong with threads.
Try to replace Timed Loop with simple While loop in your app.
Andrey.
07-20-2012 07:18 AM
Can be submitted as clear bug in VDM (I using LabVIEW 2010 / VDM 2011)
07-20-2012 07:58 AM
I tested it with a normal while loop, and it's the same, increasing memory usage.
I tried it in a small test program to ensure nothing else matters.
again disabling the light meter helps keeping memory usage constant.
Bruno
07-20-2012 08:16 AM
No, with IMAQdx I unable to reproduce this behaviour.
07-20-2012 08:40 AM
Might be worth trying to edit this vi (save it locally to your project),
in sequence 2 it creates a temporary memory space and destroys it, possibly a memory leak?
you could create this space once and pass it in. I have had issues with creating and destroying memory spaces in loops in the past.
This is just speculation.
07-20-2012 08:42 AM
Ok, i see now, we are looking at different numbers:
In the graph of your vi, indeed, it stays +- constant.
But I look in the task manager under processes, and then the memory tab as shown below.
Although the graph stays constant, mem usage keeps growing in the task manager
when I disable the meter, memory usage stays constant in the task manager aswell..