Unflatten LabVIEW class works until built in application
Posted 30 January 2012 - 10:18 PM
Now I want to save top-level-class to a file. I have tried flattening to xml and saving as well as just using the write binary primitive. In both cases I get the same result. Everything is fine and dandy in the Dev
environment, but fails in the build application when I try to read the file from disk. I get:
Error 1403 occurred at Read from Binary File
LabVIEW: Attempted to read flattened data of a LabVIEW class. The data is corrupt. LabVIEW could not interpret the data as any valid flattened LabVIEW class.
In my build spec, I have everything in the project (except top-level.vi) in Always Included (under Source Files). top-level.vi is the startup file.
I am at a bit of a loss how to proceed. Has anyone encountered this or have an idea where I might have gone wrong?
Posted 30 January 2012 - 10:28 PM
Posted 30 January 2012 - 11:06 PM
I've actually been messing around with this technique a little bit; I'm not sure its a great idea to be compiling 2 disk copies. It would be better to have a packed library with the child classes (although this introduces a whole new set of issues in maintenance and understand-ability) There really should only be one copy of the compiled code in the run time environment at a time.
Posted 30 January 2012 - 11:08 PM
Posted 31 January 2012 - 05:00 AM
I don't know exactly what you're doing, but my first bet would be cross-linking of some sort. In other words, the class that you're using during development is *not* the same class that you're loading in your built application.
Posted 31 January 2012 - 02:30 PM
Posted 31 January 2012 - 06:29 PM
Changes to top level vi: