Page 1 of 1

.NET dll memory leak ??

Posted: Sat Mar 05, 2011 3:02 am
by brad
Hi,

I've noticed erratic labview/sub20 behavior after using my sub20 device after long periods without power cycling. I am using LabView 7.1.1f2, .NET, and the 1.0.3918.128 Sub20dnc.dll.

I used process explorer to track LabView's memory usage while performing different actions with the Sub20 device. Attached is the graph with annotations of my actions.

The memory usage jumps everytime the LabView "Run" button is pressed in a VI containing a Sub20 call (see jumps at left most arrow). However, if repeated open/close calls are made during that Run instance, the memory doesn't keep climbing (middle arrow). Power cycling (remove USB cable) the sub20 device causes a drop in memory usage, but not to original baseline.
Sub20_memory_leak.pdf
memory increase graph
(133.94 KiB) Downloaded 1019 times
This is a problem because my software needs to run for many days without stopping and starting the LabView VIs or power cycling the Sub20 device.

Any thoughts?

Re: .NET dll memory leak ??

Posted: Sat Mar 05, 2011 3:05 am
by brad
Here is the VI used to test the memory leak.

Re: .NET dll memory leak ??

Posted: Tue Mar 08, 2011 5:37 am
by serg
Hi Brad,

I will try to reproduce the issue in our lab. I will let you know ASAP

Re: .NET dll memory leak ??

Posted: Tue Mar 08, 2011 5:37 pm
by brad
Thank you.

Re: .NET dll memory leak ??

Posted: Sun Mar 13, 2011 12:45 am
by serg
Hi Brad,
I cannot reproduce memory leak with LabView v8.5. This may be related to the LV7.1 memory management.
Regards

Re: .NET dll memory leak ??

Posted: Mon Mar 14, 2011 10:05 pm
by brad
Thanks for checking. I will see if the problem reproduces with 8.2.1.

-brad