DePizzottri
2016-10-06 10:51:23 UTC
Hi all,
I'm found that asio autoecho example crashes after main's return statement.
Debugger shows write access from the fiber scheduler to the already destroed
io_service.
Substitution reference to io_service:
boost::asio::io_service & io_svc_;
in round_robin algo to the shared_ptr:
boost::shared_ptr<boost::asio::io_service> io_svc_;
with approprieate correction of the other code solves the problem.
Maybe I misunderstood something in the descrition from documentation? Or its
some kind of feature?
--
View this message in context: http://boost.2283326.n4.nabble.com/fiber-Asio-autoecho-example-crashes-VS-2015-u3-tp4688641.html
Sent from the Boost - Users mailing list archive at Nabble.com.
I'm found that asio autoecho example crashes after main's return statement.
Debugger shows write access from the fiber scheduler to the already destroed
io_service.
Substitution reference to io_service:
boost::asio::io_service & io_svc_;
in round_robin algo to the shared_ptr:
boost::shared_ptr<boost::asio::io_service> io_svc_;
with approprieate correction of the other code solves the problem.
Maybe I misunderstood something in the descrition from documentation? Or its
some kind of feature?
--
View this message in context: http://boost.2283326.n4.nabble.com/fiber-Asio-autoecho-example-crashes-VS-2015-u3-tp4688641.html
Sent from the Boost - Users mailing list archive at Nabble.com.