Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Asio server application close get "This application has requested the Runtime to terminate it in an unusual way."
From: Igor R (boost.lists_at_[hidden])
Date: 2010-03-10 04:38:40


> 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 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