06-27-2017 05:33 AM
Hi,
I am getting this error 2766 when I run the VI in normal mode. I am not getting the error when i run it in 'Highlight Execution' mode. Can someone help me to fix this error!!!!. Thank you
06-27-2017 09:06 AM
I think you should try serializing the loops instead of doing parallel executions because you are closing sevral times the same reference. Otherwise, if you want to do it in parallel, only close once the reference 'node out' from 'Get all matched nodes' because in fact it is the same reference as 'Node in' which is the refrence related to 'DOM Document'
06-27-2017 09:08 AM
You have a race condition. When in highlight mode all the for loops completes before closing the DOM document node. You shouldn't split your document node reference, if you close one instance of it and one of the for loops haven't completed you will get an error (this is what's happening here).
Ben64
06-27-2017 10:39 AM
It's a race condition. Whichever loop gets done first closes the (shared) top-level node reference. This seems to have the side effect of invalidating the subnodes that are being acted upon inside the loops. That's a little surprising to me, but that's the best explanation I can come up with quickly.
-Kevin P