
22 Mar
2010
22 Mar
'10
9:39 a.m.
I find that unless I call io_service::stop() , I can't perform a asio::read(). It's actually on a thread and I'm having difficulty seeing what the exception thrown exactly is ('thread called terminate')
Use your own thread function to see what happened to your io_service:
void do_run(io_service *io)
{
try
{
io->run();
std::cout << "io_service::run ended" <