12-15-2011 11:39 PM
See attached example. I realized that you can reuse a control reference even after it is closed, and this does not applied to file reference. Why is that?
Solved! Go to Solution.
12-16-2011 02:47 AM
I didn't look at the example, but the general answer is simple - a control reference simply points to an existing control. As long as the control is still around (because LV keeps it around), closing the reference does nothing, because LV still needs it and it knows that.
A file reference, on the other hand, is something that you create yourself. Closing the reference also releases all the resources used by that reference, making it invalid. The same would apply to other type of references, such as DVRs, queues, TCP refnums, etc.
12-16-2011 07:47 AM
...adding to Yair's reply...
The control refs you are looking at are static and do not change and are valid as long as the app is open and running. THere are some control refs that are dynamic and have to be handled the same way as the file.
Done adding.
Ben
12-16-2011 09:23 AM
If that's the close, why do we have to close the control reference with the Close Reference node?
12-16-2011 09:28 AM
Only the dynamice refs need closed, see here.
Ben
12-16-2011 11:19 AM
Perfect. Thanks!