Boost logo

Boost Users :

Subject: Re: [Boost-users] [Asio] [Boost.ASIO] async_read cannot read full data from client
From: Bjorn Reese (breese_at_[hidden])
Date: 2015-07-29 08:14:15


On 07/29/2015 11:42 AM, Sarvagya Pant wrote:

> separator. Now while client received the message as expected, the server
> crashed giving the error:
>
> **Debug Assertion Failed! Expression: string iterator not deferenceable"

This is likely due to your messageTemp variables. When you pass a buffer
to async_write, then you must make sure that it exits until the write
operation is done.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net