LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI 7.0 application slows down over time

Hello,

I have an application in CVI 7.0 that sits in an infinite loop just reading voltages on a custom board over the CAN bus. The application slows down over time and each time it goes through the loop, I see the numbers in "Mem Usage" column under the Windows Task Manager go up by about 4K or 8K in an inconsistent manner. I have gone through my application and made sure that there is no "unfreed" dynamic memory. Also, I have observed this behavior only when there is a step in the loop that requires more than 40% of CPU time. I am running the application on a DELL Poweredge server running Windows2000 Server using NI CVI 7.0 and NI-CAN 2.1.

This is happenning on a delivered system at my customer site and has become a major issue. HEED HELP!
0 Kudos
Message 1 of 4
(3,321 Views)
This must be a memory leak of some kind. Post your code and I am sure someone can help you out.

Jamie
0 Kudos
Message 2 of 4
(3,288 Views)
Also note that you can use CVIDynamicMemoryInfo() to get information about the amount of dynamic memory that is allocated at a particular point of execution. This could help you track down the problem.

Regards,

Alex
0 Kudos
Message 3 of 4
(3,281 Views)
Thanks Jamie and Alex,

As a matter of fact, I did come across the CVIDynamicMemoryInfo Function and have been able to use it to my advantage. I found a couple of memory leaks in the application and now it doesn't seem to slow down any more. At least over 24 hr testing. How it does over a longer term, only time will tell...fingers crossed...

Sunil.
0 Kudos
Message 4 of 4
(3,261 Views)