You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
I have a question regarding the BlueSerializable.lvclass:
we usually package our code into packed project libraries. That means, during development, I sent my custom class as child item of the BlueSerializable.lvclass. In my case, the BlueJSONtextSerializer works fine with my class.
But when I pack the library, the namespace changes and so does the inheritance: the class loses its inheritance tree. And accordingly the BlueJSONtextSerializer dosen't work anymore, because the class doesn't inherit anymore from the BlueSerializeable.lvclass anymore.
How do you guys deal with it? is there a recommended workflow? Or a workaround?
Thanks for the info,
Niko
I have not tested this code at all with PPLs.
You are correct though, building a PPL will indeed change the class name.
Which will break this code, which is referencing classes by name.
Verrrrrry interesting.
I wonder how difficult it would be to solve this problem.
It might be as easy as removing the "p" suffix whenever it is discovered in a class name path.
Hi Brent,
this might work, since I think the inheritance tree should be saved according to documentation.
Can you point me to where I that logic is done? I took a look shortly on the weekend, but was somehow too stupid to find it. Then I can go ahead and test it.
Cheers,
Niko
Hey,
I have a question regarding the BlueSerializable.lvclass:
we usually package our code into packed project libraries. That means, during development, I sent my custom class as child item of the BlueSerializable.lvclass. In my case, the BlueJSONtextSerializer works fine with my class.
But when I pack the library, the namespace changes and so does the inheritance: the class loses its inheritance tree. And accordingly the BlueJSONtextSerializer dosen't work anymore, because the class doesn't inherit anymore from the BlueSerializeable.lvclass anymore.
How do you guys deal with it? is there a recommended workflow? Or a workaround?
Thanks for the info,
Niko
P.S.: saved in LV23
BlueSerializerExample.zip
The text was updated successfully, but these errors were encountered: