DynamicData set_complex_member corrupts data

1 post / 0 new
Offline
Last seen: 8 years 2 weeks ago
Joined: 04/29/2016
Posts: 9
DynamicData set_complex_member corrupts data
I am having problems with Connext 5.1 when copying a struct member from one DynamicData to another with set_complex_member. Before the set_complex_member everything in the destination DynamicData is fine, but afterwards it appears to no longer be complete. The call itself does not return an error. I also get error outputs on the console when the DataWriter attempts to write the instance afterwards. The attached text file contains the IDL and C++ code for a small example which illustrates the problem by simply printing the type before and after set_complex_member. Is this a bug or am I doing something wrong?
AttachmentSize
Plain text icon Example in C++3.74 KB