Boost logo

Boost Users :

Subject: [Boost-users] [fiber] Asio autoecho example crashes (VS 2015 u3)
From: DePizzottri (depizzottri_at_[hidden])
Date: 2016-10-06 06:51:23


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.

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