
22 Oct
2010
22 Oct
'10
3:08 p.m.
On 10/22/2010 7:53 AM, Ákos Maróy wrote:
actually an asio::buffer object is created in send(), which copies the contents over. this is the same pattern as used in the same sample code quoted above.
This is a common error. The asio::buffer simply wraps the memory and provides a starting location and size. You still must manage the memory. http://www.boost.org/doc/libs/1_44_0/doc/html/boost_asio/reference/buffer.ht... michael -- ---------------------------------- Michael Caisse Object Modeling Designs www.objectmodelingdesigns.com