Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Increasing memory consumption with time

Solved!
Go to solution

Greetings,
I have a MCC DAS1000 and usb3102 card. When I check the memory counsumption of the PC I see it increasing with time until at some point the PC freezes and I have to restart.
What may cause this problem, any help appreciated greatly! (PC: XP SP3 1GB Ram AMD64 X2 CPU)

PS: The code is attached

 

Best Regards Ferhat

0 Kudos
Message 1 of 2
(3,139 Views)
Solution
Accepted by topic author ferro44

Move all of your creating of channels to be BEFORE your loop.  You are causing memory leaks since you just keep creating new references without closing the "old" ones.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 2 of 2
(3,118 Views)