Hello,
we're trying to translate the C++/C# example from here
https://github.com/rticommunity/rticonnextdds-examples/blob/master/examples/connext_dds/group_coherent_presentation/
to Java, but run into an issue. When there is any datawriter in the coherent publisher, there will be a crash in nddscore.dll when calling publisher.end_coherent_changes()
we basically have a 1:1 translation of the c++ code to java
Thanks for any hints
ray
Hello Ray,
Have you started with one of the existing, non-group coherent Java examples and modified it? Is there any way that you could post your code snippet for review? That would make assisting much easier.
Thanks,
PK
Hello and thanks for your response PK. We started with translating from the C++ code directly, skipping the non-group Java examples.
Here's the whole publisher file, the crash happens here
publisher.end_coherent_changes();
if the writers are created with participant.create_datawriter... instead of publisher.create_datawriter... , there's no crash. But I suspect that the coherent grouping takes into account only the datawriters inside the publisher not the participant's "implicit" publisher.
Cheers,
ray
Hello,
after successfully running the non coherent group examples you mentioned we found a difference, which is likely the cause.
The writer uses the BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS policy - removing this makes the code not crash inside the dll anymore.
Cheers,
Ray