LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Memory Leak in "Read WDT Array Dlg File"?

Hello, I have a VI that reads data from a binary file. The file contains integer waveform data for a variable number of records. The trouble is that when I load (for example) a 5MB binary file, memory usage (as reported by the Windows XP task manager) shoots up 30MB! I have hit 600MB memory usage with a 15MB file. I have tracked it down to the "Read WDT Array Dlog File".vi. Memory usage is directly dependent on how many times I call this VI. I can't see where any references, etc are being left open after each loop iteration. Does anybody have experience with this VI? I have attached a screenshot of the loop in question. Any information would be greatly appreciated! Thanks.
0 Kudos
Message 1 of 3
(2,714 Views)
I was able to reduce the memory usage a bit by using some shift registers, but it still uses about 6 times the file size, and does not free it when I hit the "Stop" button. It will, however, free the memory when I close the VI. Any ideas?
0 Kudos
Message 2 of 3
(2,704 Views)
Hello tritone,

I have not been able to produce the behavior you are seeing. Could you possibly post a small sample VI (non picture) that verifies this behavior.

One option you do have is to use the Request Deallocation primitive available under Functions->Advanced->Data Manipulation. This primitive will allow you to deallocate memory programmatically in your application.

Please let me know if you have any questions.

Regards,

Matt F
0 Kudos
Message 3 of 3
(2,654 Views)