serialization

2 posts / 0 new
Last post
Offline
Last seen: 2 years 6 months ago
Joined: 03/29/2021
Posts: 12
Moden C++ DynamicType (i.e TypeCode) serialization and deserialization on 6.0.1

Hi,

I want to serialize a DynamicType instance, write the serialized data to file and then later read it from file and deserialize it.

I have read this thread to know how to convert between a C++ DynamicType instance and a C DDS_TypeCode instance: https://community.rti.com/forum-topic/52-moden-c-dynamictype-ie-typecode-serialization

And I also use this example code as a base for my code: http://community.rti.com/filedepot?cid=5&fid=28

Organization:
2 posts / 0 new
Last post
Offline
Last seen: 2 years 4 months ago
Joined: 02/20/2020
Posts: 6
System.Runtime.Serialization.SerializationException: 'Type 'DDS.Retcode_PreconditionNotMet'

I'm creating integration tests for my DDS application. To acquire readers, writers I'm using configuration through QoS XMLs. When running two specific test cases from the total of 32 cases, the second case always fails. When debugging the code, there seems to be a problem in my configuration, but I can't seem to figure it out. There is an ErrorCode from DDS, but that generates a SerializationException:

Stacktrace:

3 posts / 0 new
Last post
Offline
Last seen: 4 years 5 months ago
Joined: 08/13/2014
Posts: 55
Error in Serialization and Deserialization

Hi,

I'm using RTI version 5.2.0 (Modern C++ API) and I sometimes get the following error in my output terminal. What is this error and what should I do? For your information, my program is a small version of recording service and I do serialization and deserialization of dynamic data and synamic type in my program. I have also brought my codes for serialization and deserialization of dynamic type below. For dynamic data serialization and deserialization, I use "to_cdr_buffer" and "from_cdr_buffer" functions respectively. 

Subscribe to RSS - serialization