annulla
Visualizzazione dei risultati per 
Cerca invece 
Intendevi dire: 

Memory is full due to .NET Object

Hi to all,

I'm using Labview with an external .NET table. I initialize the table and then I update some values of this table periodically (1-2 times for second). After a variable time (20 minutes - 2 hours) I receive the error

Errore2.png

The section code is

Vi - Error.png

and the problem is that the parts of code highlighted in red even if they have all the correct inputs at some point they start to give out invalid references. 

As you can see from the code I always close all the references, the problem seems to be the high number of references used.

Can someone help me?

 

0 Kudos
Messaggio 1 di 10
4.824Visualizzazioni

I've had similar problems. Extract the references the 1st time you call the function and reuse them instead of extracting them every time. See how that works out. Also, why do you convert the random number to variant?

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Messaggio 2 di 10
4.802Visualizzazioni

You could try dropping a garbage collector node in there.

 

Garbage collect.png

Messaggio 3 di 10
4.796Visualizzazioni

For Yamaeda,

This is an example, in my project is not applicable because labview open at the most 2^20 references.

0 Kudos
Messaggio 4 di 10
4.775Visualizzazioni

For Kyle97330,

I tried but it does not improve the situation

0 Kudos
Messaggio 5 di 10
4.774Visualizzazioni

2^20 Smiley Sorpreso How do you manage that?

In some cases, like pasting into Excel, you can select the 'insertion cell' and then send a 2D-array. Is there some similar function here?

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Messaggio 6 di 10
4.765Visualizzazioni

2^20 is write in the solution of this https://forums.ni.com/t5/LabVIEW/LabVIEW-Memory-is-full-error-using-To-NET-Object-vi/td-p/3651001

No, is not possible to insert an array and in my case it would not help me anyway

0 Kudos
Messaggio 7 di 10
4.762Visualizzazioni

Ah. That's why I suggested caching the ref's, as I did in that thread also, then you wont open 2^20 refs.

The only thing I react to in your code is that the Row-ref is closed directly instead of after the loop.

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Messaggio 8 di 10
4.758Visualizzazioni

Did you have any success?

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Messaggio 9 di 10
4.737Visualizzazioni

No, at the moment

0 Kudos
Messaggio 10 di 10
4.733Visualizzazioni