LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Labview + .Net memory leaks

Solved!
Go to solution

I have a .net dll integrated into my app. And there are 2 parts: data produser and data consumer.
The produser generates events with new data.
1st step. I resend data from the event into the consumer. This works correct.

001.png

 

2nd step. I need modify data before resend.
The Powers element is a list of arays. I convert this list into array this way.

003.png

 

Then I take part of the array and update the List values.

002.png


In this case I see fast memory leak.
Original array is ~25Mb and memory leaks with this speed (~3 Gb per minute).

How can I fix this error?

0 Kudos
Message 1 of 5
(3,973 Views)
Solution
Accepted by topic author Artem.SPb

You dont' seem to Close your Powers ref or WFwidget, that could cause some leakage.

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 2 of 5
(3,937 Views)

Widget is the "indicator" on FP, it continue to work.
Powers ref closed by "close ref" VI (first after DataEvent method).
I tried to close Widget ref, but memory still leaks.

0 Kudos
Message 3 of 5
(3,932 Views)

You're right. I do not close one of the copies (inside the subVI)

Message 4 of 5
(3,930 Views)

@Artem.SPb wrote:

You're right. I do not close one of the copies (inside the subVI)


Yes that's the one i was referring to, i saw now that you used that name in the main VI also. 🙂

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 5
(3,913 Views)