[Ace-users] Clarification about C++Npv1 example about mb_aligned message block, thanks!

hongxing777 at gmail.com hongxing777 at gmail.com
Sat Sep 1 18:41:36 CDT 2007

In Chap 4.4, Logging_Handler::recv_log_record, line 27:
27     payload->size (length + 8);

Here I think it should be:
27     payload->size(length + 8 +ACE_CDR::MAX_ALIGNMENT);

Because on line 12, it calls ACE_CDR::mb_align (payload); which may
cause wr_ptr_
is 8 before writing something to it.


More information about the Ace-users mailing list