.NET dll memory leak ??

All about Sub-20 Multi Interface USB Adapter USB to I2C, SPI, GPIO, RS232, RS485, Ir, LCD

Moderator: serg

Post Reply
brad
Posts: 23
Joined: Thu Jan 13, 2011 2:51 am

.NET dll memory leak ??

Post 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 967 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?

brad
Posts: 23
Joined: Thu Jan 13, 2011 2:51 am

Re: .NET dll memory leak ??

Post by brad »

Here is the VI used to test the memory leak.
Attachments
open_close_sub20.zip
(15.21 KiB) Downloaded 910 times

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: .NET dll memory leak ??

Post by serg »

Hi Brad,

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

brad
Posts: 23
Joined: Thu Jan 13, 2011 2:51 am

Re: .NET dll memory leak ??

Post by brad »

Thank you.

serg
Posts: 143
Joined: Mon Aug 31, 2009 9:17 pm

Re: .NET dll memory leak ??

Post by serg »

Hi Brad,
I cannot reproduce memory leak with LabView v8.5. This may be related to the LV7.1 memory management.
Regards

brad
Posts: 23
Joined: Thu Jan 13, 2011 2:51 am

Re: .NET dll memory leak ??

Post by brad »

Thanks for checking. I will see if the problem reproduces with 8.2.1.

-brad

Post Reply