LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory leak in FFT function

Hi everybody
 
I have a memory leakage when using the FFT() funtion in the Advanced Analysis library. I have evn tried the example code given by NI:
 
double x[256], y[256];
int n = 256;
unsigned int UsedBlocks, UsedBytes;
 
Uniform (n, 17, x);
Uniform (n, 17, y);
CVIDynamicMemoryInfo ("", &UsedBlocks, &UsedBytes, DYNAMIC_MEMORY_SHOW_ALLOCATED_MEMORY_SUMMARY);
FFT (x, y, n);
CVIDynamicMemoryInfo ("", &UsedBlocks, &UsedBytes, DYNAMIC_MEMORY_SHOW_ALLOCATED_MEMORY_SUMMARY);
 
The UsedBlocs and UsedBytes is increased after the call to FFT. Any ideas?
 
Thanks in advance
-burobengen
0 Kudos
Message 1 of 5
(4,069 Views)
I have reproduced this as well. I'll file a bug report for this.
In the meantime, try using ReFFT if you need to perform an FFT on a signal. Or if you have CVI FDS, use the AmpPhaseSpectrum() function if all you want is the amplitude and phase of the signal. They seem to be working correctly.
Bilal Durrani
NI
0 Kudos
Message 2 of 5
(4,055 Views)
I have version 7.1.1 and it still has this bug (memory leak in FFT function).  Is there any way to fix this?
 
Thanks,
DS
 
0 Kudos
Message 3 of 5
(3,877 Views)

Actually, I am pretty sure the FFT function does not actually leak memory.  The bug is that memory is noted as leaked from the memory info functions.

 

 

 

 

0 Kudos
Message 4 of 5
(3,875 Views)
The FFT memory leak was confirmed to be fixed in CVI 8.0.
Bilal Durrani
NI
Message 5 of 5
(3,857 Views)