17 Dec
2013
17 Dec
'13
4:30 p.m.
On 12/17/2013 04:54 PM, Alexander CarĂ´t wrote:
SJ::SJ(){ boost::asio::io_service::work work(dFC->io_service); boost::thread myThread(boost::bind(&boost::asio::io_service::run, &dFC->io_service)); }
The work object is destroyed when execution leaves the constructor, and the work destructor signals to the io_service that the work is complete. Try making work a member variable instead.