XControls, XProblems, of XML parsing

I use a motor of Action (functional overall) to keep a reference to a DOM Document, with several States to manipulate the document.  I call the engine action XControls on Init and Uninit VI, so that there are XML elements that are added/removed by the engine of the action when the XControl is added or deleted a VI.  I am able to add many copies of the XControl without problems.  Often I can go on adding and removing XControls several times.  Randomly, however, I get a 15 warning associated with the XML parser, indicating that the Document DOM resource is not valid.  From this moment, I'm more able to make changes to the document - I can view the XML associated with the DOM using XML Document to get, but am not able to manipulate it in any way.  It is as if the object or reference has corrupted.

Y at - it a known bug related to this?  If I run the motor of action independent of the XControl I don't get this problem.  XControls tend to corrupt the references in external screw for the XControl?

I'm using LabVIEW 8.6.  Thanks for any help.

LaRisa,.

It turns out that it is not necessarily a bug.  The problem arises from the way LabVIEW automatically cleans references for the screws that are no longer active.  I called the overall functioning of the XControls in the Init and Uninit capacity live after the creation and deletion of multiple copies of one the XControl on my front, LabVIEW must have decided that I used is no longer the global functional and empty its references VI.

To resolve this problem, I now initialize the functional overall in a hidden 'main' VI which runs as long as I have any XControls on the front panel.  The case put the functional overall in a calling tree remains active rather than one that is more sporadic, such as the call XControl VI tree.

I can understand why there was a problem, given the unusual delivery XControls.

Thanks for following, I hope this helps others when generating XControls - they are really not so bad once you get used to their strange behavior.

Tags: NI Software

Similar Questions

Maybe you are looking for