It simply means that the compiler will pad your struct sizes to fit into a multiple of the byte alignment, hence a different size is reported when you try to copy memory. And the error when the size is too big (unexpectedly).
Its a quick change in your C compiler....compile with the correct data alignment, or try them all to see whan you get the alignment the same as is generated by LabVIEW
How to get a Data from a array of structs in ANSI C into an array of clusters in Labview
in LabVIEW General
Posted
Hi labviewbeginner, I hope this is not too late in reply.
I think the problem is with Byte Alignment (or Data Alignment), particularly with structs in C
See: http://digital.ni.com/public.nsf/allkb/F7E5C9169D09E98586256AF300717B33
Your C compiler is configured to use a different Data Alignment (1 byte, 2 byte, 4 bytes, 8 bytes, etc) than your LabVIEW version is set up to use.
See: http://en.wikipedia.org/wiki/Data_structure_alignment
although wikipedia is not that clear.
It simply means that the compiler will pad your struct sizes to fit into a multiple of the byte alignment, hence a different size is reported when you try to copy memory. And the error when the size is too big (unexpectedly).
Its a quick change in your C compiler....compile with the correct data alignment, or try them all to see whan you get the alignment the same as is generated by LabVIEW
Hope this helps