05-22-2008 04:16 PM - edited 05-22-2008 04:17 PM
05-25-2008 05:10 PM
Hi Sima,
I modified your attached example so that I could try to reproduce the issue on my system. I tried two different scenarios, one with an array of constant data waveforms and one with waveform data coming from a data acquisition device. In both cases I was unable to see any memory leaks occur in the 15 minutes that I monitored the memory usage. Could you please try the two VIs that I have attached to see if you have a memory leak on your computer. In addition could you answer these questions which would help me to narrow down the variables in this issue:
Thanks in advance for your answers to these questions, as they will help to expediate the resolution time for your issue. I hope you are having a good Memorial Day weekend!
Cheers,
Jonah
Applications Engineer
National Instruments
06-05-2008 03:06 PM
Hi Jonah, thanks for looking into this for me. First to answer your questions:
1. How long did you have to run the VI until you saw noticable memory leakage?
I ran for a few minutes and then started to see an increase of about 4K every 5 seconds using your "memory leak test ver1.vi". It went a lot faster in the original application, but that might have been because there were more instances of this VI.
2. What hardware you using this VI with (what was the input to the waveform array control), when you saw the leakage occur?
A (traditional) DAQ card.
3. What are the system specifications for computer (Windows version, processor, etc.)
Windows XP and I think it was an Intel dual core, but I'm not sure. I am running the test VIs at my laptop and still seeing the leak. I have a Dell Latitude D810 and I'm running Win XP as well.
4. Are you using LabVIEW 8.5 or 8.5.1?
LV 8.5
Now, to get your VIs to leak: It looks like you have to index one instance "correctly" (e..g use 0 or a name that exists), and the other instance incorrectly (e.g. use 5 or a name that doesn't exist). I hope you'll be able to reproduce the issue.
My temporary fix was to write a VI that simply searches the array of names and then use the regular Index Array VI to pull the waveform I need. I replaced all the Index Waveform Array VIs with this code. The customer has not seen the memory leak on their PC so far.
Thanks,
Sima
06-09-2008 06:47 AM
Sima,
I tried running the memory leak test ver1 VI using indices of 0 and 5 as you suggested; however, after a half an hour I was still unable to see any memory leaks occuring. In addition to LabVIEW 8.5.1, I also tried LabVIEW 8.5 on a different machine in which I did not see any memory leaks. I will try this VI as well as the version2 VI on my colleagues' computers and let you know if I'm able to reproduce the leak.
Cheers,
Jonah
Applications Engineer
National Instruments
06-09-2008 11:48 AM
06-10-2008 06:25 PM
11-04-2008 01:07 PM