
can you code the Boost.Asio chat server example for exit by a command? if you can, my problem solved. 2010/3/10 Igor R <boost.lists@gmail.com>:
thanks everyone, i solved my problem. just use io_service.stop() instead of acceptor.close() and socket.close(). maybe i must to research the implementation.
It's not a solution but just a "dirty" workaround: by stopping io_service you prevent the further invocation of handlers. I guess some of your handlers used to get called after destruction of the object they were bound to. You can avoid this situation by binding the handlers to shared_from_this(). _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users