I have used FooPlugin_get_serialized_sample_max_size() with Connext 5.x with no issues. But now trying to move to Connext 7.x and those same calls are causing segmentation faults.
I've always called it with null parameters: FooPlugin_get_serialized_sample_max_size(0,0,0,0) and it returned the max size of the type Foo (in v5.x)
But that doesn't work on Connext v7.x. Does it now need an actual PRESTypePluginEndpointData endpoint_data value? And how can I get it using C++98 ?
I don't understand why it needs endpoint_data since the call is specific for type Foo and the max size should be static at compile time.
Hi Chris,
You should be using DDS_TypeCode::cdr_serialized_sample_max_size. Here you have an example code snippet:
Let me know if it works for you.
Sure did! Thanks!
This did the trick nicely: