eclipse-cyclonedds / cyclonedds-cxx

Other
96 stars 75 forks source link

Fix missing Writer callbacks on DomainParticipantListener #452

Closed e-hndrks closed 1 year ago

e-hndrks commented 1 year ago

When setting a Listener on the DomainParticipant that needs to handle events originating at a DataWriter, the application ignores (or crashes in debug mode) the Writer event when it occurs. This was caused by the DomainParticipant class not overriding the default Listener callback handler set in the Entity class that was meant as an abstract placeholder and caused an assertion to fail. That is now resolved by properly overriding this placeholder with a callback handler that properly propagates the callback to the appropriate function in the registered DomainParticipantListener. This should fix issue #427