LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

memory full

Solved!
Go to solution

Hello,

 

There is this memory full error i don't understand because AFAIK nothing is memorized.

This is the code snipped. All i wanted to do was check how much time the .net function calls take.

 

 

code1.PNG

 

but after exactly 1048575 loops the following error appears. 

error1.PNG

what creates this error? is it labview or is my .net dll faulty?

 

0 Kudos
Message 1 of 4
(2,841 Views)
Solution
Accepted by topic author benedikt0121

I don't know that .NET camera stuff, but please swap your reference tunnels to a shift register.

Also close the reference "Acquisition" you create by your "Acquisition" property node (after reading the acquisition properties "HasStarted" and "started").

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 2 of 4
(2,831 Views)

Thank you.

 

Closing the reference fixed the error.

 But why would i use a shift register? it is a static reference and doesnt change?

0 Kudos
Message 3 of 4
(2,819 Views)

A shift register represents a single data space. Hence you write back the reference to the same data space, which seems over-elaborate. True.

 

BUT:

a) There are references which change when being accessed. Using tunnels will pass an invalid (not valid anymore as it "moved") reference in iteration N>=1 in that case.

b) Likely, you create a copy of the reference with each tunnel. This wastes memory which is not necessary in that case. Granted, the waste is 4 or 8 byte....

 

Norbert

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 4 of 4
(2,811 Views)