In line 382 the buffer is overwritten. I printed the length of the buffer before the tlp_put.
Issue is in the example. If you modify the size to 25 it is set to 25 in the publish. But in put it still formats the message to 24 characters. The buffer sizes must match otherwise it returns the TRDP_PARAM_ERR.
Header dependency for VS2019
Callback returns TRDP_TO_DEFAULT as timeout behavior