LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Closing XML parent ref crashes LV

Open Query XML Document for Multiple Nodes.vi (from the example finder), and delete the error line immediately after the for loop.  Save what you're working on... and run the XML VI.  LV apparently fishes around for a moment, then goes away.

 

Sorry, I try to find them in beta, but... <shrug>

 

Joe Z.

 

 

x-post to http://lavag.org/topic/10929-lv2009-closing-parent-xml-ref-crashes-lv/

Message Edited by Underflow on 09-01-2009 05:15 PM
0 Kudos
Message 1 of 2
(2,927 Views)

Hey Underflow,

 

As pointed out in the LAVA forum, the behavior you are seeing is due to a break down in the idea of data flow. By removing that particular error wire, there is nothing forcing the for loop to execute before the 'final' Close.vi. This is causing you to close the parent reference too early, resulting in the hang/crash your are seeing.

 

However, as mentioned in the LAVA forum, this should result in an error and be handled properly. Because of this, I have filed CAR#185492.

 

This behavior can be avoided by keeping the idea of data flow in mind and keeping track of references.

Hope this helps.
-Ben

WaterlooLabs
0 Kudos
Message 2 of 2
(2,874 Views)