Using property node by reference in a for loop 
Author Message
 Using property node by reference in a for loop

In terms of your problem with using property nodes in a loop, they do
not inherently use large amounts of memory--as long as they are
handled properly. Unfortunately some of the examples that shipped with
V6.0.2 didn't handle the properties correctly. (V6.1 I don't know
about.) Specifically, these examples didn't close references that
needed closing.

It sounds like this could be part of your problem. Each time the loop
executes it reopens a reference and eats up a little more memory. When
you quit you application, LV has to deallocate all this memory, which
can take a lo-o-o-o-o-o-ng time.

I once had a memory leak from this cause that if you let the program
run over night, it could take as long as 35 minutes for the program to

If you post your code in 6.0 format, I'd be glad to look at it...


Oh yes, in terms of what references need closing: A good place to
start is close everything when you're finished with it. According to
NI, closing a reference that doesn't need it is essentially a NOP so
it won't burn much time. If this fixes your problem, we can talk about
which ones specifically need closing...

Wed, 29 Sep 2004 05:12:54 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Using Property Nodes

2. Selecting elements of an array using property nodes

3. playing AVI files using invoke/property nodes

4. Labview 5.1.1 crashes when I use Invoke Node or Property Node

5. undefined property in property node

6. Help comparing the value of a button using the Property Node (I get a variant)

7. Align graphs using property nodes

8. Error 1003 when using call by reference node

9. using call by reference node to run a vi

10. Strange feature of Property nodes

11. Connection errors associated with the property node

12. boolean property node problem - doesnt save


Powered by phpBB® Forum Software