I receive the following error when creating a data reader.
PRESCstReaderCollator_addRegisteredInstanceEntry:!serialize key
PRESCstReaderCollator_addInstanceEntry:!add registered instance
When I look at the Topic Type in the RTI Analyzer, the topic types are identical except for one field:
Data writer has an element defined as "ice::DeviceIDType DeviceID" (key field #0)
Data reader has the same element defined as "string DeviceID" (key field #0)
In the IDL for the data writer, there is a typedef statement:
typedef string<64> DeviceIDType
Match Analysis says that the types match. However, I an not able to read data. Is the use of the typedef in the topic type registration the cause of this error? Does the fact that it is a key field make a difference?
Thanks.
Mark.
I resolved this problem. The data reader is using Dynamic typing. Root cause is that when creating the string element using DDS_TypeCodeFactory_create_string_tc, the "bound" argument did not match the string size ( 64 ) specified in the IDL.
Thanks.
Mark.