QoS properties for controlling Dynamic Data resources

3 posts / 0 new
Last post
Offline
Last seen: 5 months 1 week ago
Joined: 10/23/2013
Posts: 43
QoS properties for controlling Dynamic Data resources

Hello,

I have an application that is using DDS Dynamic Data API's to read a DDS Topic with a large payload.  I get the following error when the payload is above about 32K bytes.  Are there QoS properties I can adjust to support larger topic types?

 

DDS_DynamicData_copy:unable to grow buffer

PRESPsReaderQueue_readOrTakeNextSample:!copy

PRESPsReader_takeNextSample:!queue takeNextSample

 

Thanks.

Mark.

bobby's picture
Offline
Last seen: 3 years 7 months ago
Joined: 07/25/2011
Posts: 20

Hi Mark,

It looks like you will need to increase DynamicDataProperty_t::max_buffer_size. Here is example code:

DDS.DynamicDataProperty_t property = DDS.DynamicData.DYNAMIC_DATA_PROPERTY_DEFAULT; property.buffer_max_size = 0x3fffffff; _theInstance = new DDS.DynamicData(typeCode, property);

Regards,

Bobby

 

 

Offline
Last seen: 5 months 1 week ago
Joined: 10/23/2013
Posts: 43

That worked.  Thanks for your help.

Mark.