03-18-2020 04:50 AM
Hello!
I have a problem with my LabVIEW code...
The code was running normally, until I tried open it on the next day.
If i klick on the class -> load -> LabVIEW: (Hex 0x4A) Memory or data structure corrupt. The file "... .lvclass "could not be loaded.
The only difference between the working and the not working code was:
some new VI's and TypeDefs - no changes in the class.
Another strange thing:
in the dependecies is the control of the class - is this normal?
Maybe somebody is known with this kind of error and might have some ideas.
Greetings!
03-18-2020 05:35 AM
Wild guess - are you using source code control of some sort and have tried to merge changes?
Lvclass files are often interpreted as text by diff tools but are not and then get messed up.
Lvproj and lvlib files are from my experience a little more forgiving, but I'd still be careful.
If that's not the case, do you have a backup from the earlier lvclass file?
03-18-2020 05:55 AM
Yes, I'm using SVN and tried to merge the changes -> got conflicts in the class and if i try to resolve them, all conflicts are gone but the class is still not loaded in LabVIEW.
The error appeared first when I created a new TypeDef - do you think that the TypeDef might be a problem?
Good to know, thank you!!
03-18-2020 04:27 PM
@Aliasasil wrote:
Yes, I'm using SVN and tried to merge the changes -> got conflicts in the class and if i try to resolve them, all conflicts are gone but the class is still not loaded in LabVIEW.
Haha! +1 for wild guesses. Sorry for your misfortune though...
@Aliasasil wrote:
The error appeared first when I created a new TypeDef - do you think that the TypeDef might be a problem?
No - probably the problem is the class "merge". I strongly expect that whilst SVN believes it merged the file, it didn't result in a valid lvclass file.
My suggested workflow using Git is as follows. Hopefully it can be adapted to SVN, but I'm not familiar enough with the tooling to give the correct commands (so hopefully you can get the drift and adapt it):
Unfortunately some parts of this workflow might not map easily to SVN, but I hope it gives at least some pointers.