09-30-2022 08:13 AM
I already contacted NI support, who said they would create a CAR, but after 2 years this bug still exists in LV2022, so I thought it would be great to document it here.
Description: in LV2019, LV2020, LV2022... Let's say you have a class with a static dispatch property, and access this property from a method using a property node.
It can happen that removing the property from the project explorer and then opening the method (that uses the property node) will crash LV.
To narrow down the bug: It only happens with static dispatch, dynamic dispatch is ok. Also, if the VI using the property node is not inside a class, it seems to work fine too.
You can reproduce this crash with the attached example project (min version: LV2019)
04-14-2024 04:11 PM
While this bug is still present in LV2023 Q3, I found a workaround:
Before deleting your static dispatch accessor VI (either read or write) from your class:
- Change its connector pane to dynamic dispatch (for both input and output objects);
- Save it;
- Then you can safely delete it from your class.
If then you open a VI that uses it in a property node, LV shouldn't crash anymore.
Also, the corresponding property item should appear with a black text as expected (meaning selected property does not exist anymore).
I really hope this gets fixed one day though.