02-04-2025 03:59 PM - edited 02-04-2025 04:24 PM
Not to resurrect a dead thread, but I came across this issue in LabVIEW 2024 Q3 and (kind of) found the cause, at least for me.
In my case I was integrating the 7zip CLI into the class, which I downloaded and added all the contents into the my Class' Private section. Within that download were different .exe and .dll files for the different versions (x64, arm64, Far) with the same names, just in different subfolders. After adding all of them into my class and doing my initial save and exit, reopening the class and making ANY modification and saving it would cause my class to corrupt.
Once I removed all the .exe and .dll files that I didn't need from the class and just kept the x64 version, the class stopped corrupting after save.
I don't know the exact reason why this happened, but when I was inspecting the XML in the .lvclass file I did notice that the entries for the 7zip files were a bit wonky. It seemed that while it was saving the subfolder names correctly, when it was saving the paths for the files within it it was always referencing the .exe and .dll files in the arm64 subfolder.
TL:DR - The class didn't like duplicate dll/exe file names in different subfolders within the same root folder
02-07-2025 08:30 AM
NI has confirmed this behavior is a bug and assigned it the bug ID 3013524