12-09-2014 04:05 AM
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.
but after exactly 1048575 loops the following error appears.
what creates this error? is it labview or is my .net dll faulty?
Solved! Go to Solution.
12-09-2014 04:15 AM
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
12-09-2014 04:37 AM
Thank you.
Closing the reference fixed the error.
But why would i use a shift register? it is a static reference and doesnt change?
12-09-2014 04:51 AM
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