LabVIEW APIs Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Using classes and xnodes together causes LabVIEW to crash. Help needed.

Hello everyone, I recently encountered an issue while using LabVIEW 2024. Attached is the minimal system that reproduces the problem. To briefly describe it: I have a custom XNode and a custom class. Within one of the class's methods, I connect the class instance to the XNode input. Whenever I edit the private data space of this class—whether I save the changes or choose not to save—LabVIEW crashes as soon as I close the Data Window. Has anyone else encountered a similar issue?

0 Kudos
Message 1 of 3
(92 Views)

Yes, crashes for me too.

 

AFAIK, not much you can do. You might try NI support, but xnodes are probably not officially supported. Someone might take an interest though.

 

I don't know if you are formally allowed to access the private data. The VI is embedded but not a class member.

0 Kudos
Message 2 of 3
(59 Views)
Thank you so much for your response! My latest progress is that if I disconnect the class from the xnode in the class method, save the entire project, close and reopen it, then edit the class's private data and save it, this issue doesn't occur. I initially suspected it was related to type propagation and xnode's adaptToInput. However, editing private data after disconnecting the class from xnode still triggers xnode's adaptToInput. So now I'm confused. I'll look into it further over the weekend.
0 Kudos
Message 3 of 3
(36 Views)