Hi,
I need to pass some data to a DLL and need to pass the number of bytes I'm passing also.
I tried using 'cast' (should accept anything) for getting the memmap but this fails (polymorphic input cannot accept this datatype) due to an array inside the cluster.
Then I wanted to switch to 'flatten to string' for getting the same result and now the arraysize is prepended before the arraydata
I stripped down the code to the bare parts but I don't want to unbundle all elements from my original cluster, just for getting the size.
Attached you can find a LV8.5 version, the behaviour in LV 2010 SP1 is exactly the same.
cast_fails4.vi
thx
tnt