Hello,
I'm having an issue with take_untyped and read_untyped functions called from on_data_arrival, in that they sometimes return RETCODE_NO_DATA (can get up to 100 times in a few minutes)
From what i've read in the documentation, it seems that there is no erronous behavior here, but I'm wondering how is it possible that there is no data if on_data_arrival was called?
(I'm assuming that the behavior is normal, judging from the example in http://community.rti.com/rti-doc/45f/ndds.4.5f/doc/pdf/RTI_Connext_UsersManual.pdf figure 7-10 Simple DataReader)
Thanks,
Michael
Hi,
As you said this is not indicative of an error. There are several 'normal' situations that can result on this. See below. This may not be an exhaustive list:
Does your situation match any of the above? If not I would need to think more to see if there are any other cases that could result on calling the on_data_available() and returning NO_DATA to the read/take.
Gerardo
Would that be the case if I have NOT_READ_SAMPLE_STATE mask?
I would not expect that to happen if you are only using the NOT_READ_SAMPLE_STATE mask because this flag selects the samples that have not been read by anyone and presumably your listener is the only one reading the samples...
Is it possible for you to post here a simple reproducer? If so this could help us track down this seemingly odd behavior.
Gerardo