1

I'm trying to send and receive a large message with Fast-Rtps. I had taken the HelloworldExample code and altered its idl message (i added a char array at different sizes) the biggest size i manged to send was 8370000.

I already found and added to the init() method this line: Wparam.qos.m_publishMode.kind = ASYNCHRONOUS_PUBLISH_MODE; it helped but still i'm stuck at 8MB

struct HelloWorld
{
    unsigned long index;
    string message;
    char array[8000000];
};

When changing the message to:

struct HelloWorld
{
    unsigned long index;
    string message;
    char array[9000000];
};

i get : Segmentation fault (core dumped)

Avivka
  • 11
  • 1
  • It's statically allocating that block of memory, including the history depth. Do you have enough memory? – rip... Sep 16 '19 at 16:08

0 Answers0