dispose of unexisting instance, RTI 5.3.1

3 posts / 0 new
Last post
Offline
Last seen: 3 years 11 months ago
Joined: 04/02/2020
Posts: 4
dispose of unexisting instance, RTI 5.3.1

Im using the propagate_dispose_of_unregistered_instances data reader protocol allowing my datareaders the abillity to recieve the dispose message on the non exiting instances

Im trying to relay the removal message to another domain, where the instance does exist, the problem is that in order for the datareader to relay the dispose message, it needs the instance's key

Normally I would use the get_key_value method but the method throws a RET_CODE error as the data reader does not know the instance Im trying to retrieve.

Any suggestion on how I can retrieve the key?

 

Thank you.

Offline
Last seen: 7 months 2 weeks ago
Joined: 01/10/2013
Posts: 28

Hi, 

You can use the setting DataWriterProtocolQosPolicy::serialize_key_with_dispose

HTML docs:

https://community.rti.com/static/documentation/connext-dds/6.0.0/doc/api/connext_dds/api_c/structDDS__DataWriterProtocolQosPolicy.html#a7d8c1e77cbcf49d4b993d2e567c6468a

Let me know if that helps! 

 

Offline
Last seen: 3 years 11 months ago
Joined: 04/02/2020
Posts: 4

Hi erin,

that worked!

Ty