I'm not sure if I've stumbled into a bug or what.
In LabVIEW2020 it would seem the Flatten to String function is entirely ignoring the "Prepend Array or String Size" input and completely defaults to not including it, regardless of what is wired up (note the default behavior is documented as being set to TRUE).
Can I get another pair of eyes on this to let me know if I'm crazy or not?
I stumbled into this when a LabVIEW 2019 app sent me data over the network with the size prepended. When I went to unflatten, I got error 74: Memory or data structure corrupt. (Note the data did have size prepended from the 2019 flatten). While not depicted in my example, this tells me that the 2020 unflatten is also not adhering to the prepend size input.
Solved! Go to Solution.
When inside the cluster or an array, the array and string sizes are always included.
Please ignore me. I was writing an array and trying to read a single cluster.
Takes great courage to admit a mistake instead of disappearing from the topic. 😉