03-19-2013 02:38 PM - edited 03-19-2013 02:43 PM
Hi all,
I have an urgent issue with sporadic memory leaks in the shared variables.
Occasionally reading and writing to shared variables leak memory. The rate can be increased by enabling "Flush Shared Variables" disabled in the code,
I have not been able to reproduce it with shared variables on the localhost, however shared variables running on a RT PXI target seem to cause this issue.
It is as if something sometimes breaks and causes the memory leaks. Perhaps some threading/pointer concurrency issue?
Steps to reproduce:
System information:
Some help here from an AE or R&D would be nice as I can not resolve this on my own.
See the attached pictures.
Br,
/Roger
Solved! Go to Solution.
04-06-2013 12:26 AM - edited 04-06-2013 12:33 AM
Another memory leak besides the flush initiated one is a shared variable property node that leak memory. See the attached example project and image below.
It seem to be there both for LV2011 SP1 and LV2012 SP1
Below is an image of a workaround using a shift register to store the values of "Children[]" which is read just once:
A #CAR for these two bugs would be nice to have.
Br,
/Roger
04-23-2013 05:37 AM
CAR #403386 was created to track this issue.
05-06-2015 09:16 AM
Were you ever able to resolve this issue?
05-06-2015 09:32 AM - last edited on 11-27-2024 03:20 PM by Content Cleaner
@LinCui wrote:
Were you ever able to resolve this issue?
I'm always able to work myself around the shortcomings in LV.
The bug(s) seem to be fixed in LV2013.
https://www.ni.com/en/support/documentation/bugs/13/archived--labview-2013-bug-fixes.html
Br,
/Roger