Boost Users :
Subject: Re: [Boost-users] async_send handler problem
From: Alexander Carôt (Alexander_Carot_at_[hidden])
Date: 2013-12-17 14:15:36
Thanks a lot to Aaron, Bjorn and Igor for you constructive comments !
Finally it works fine even in the environment of my former Qt-based
project. In fact some problems (especially the last on with the local work
variable in the constructor) might have sounded trivial but I tend to
become confused when switching to a new technology. Be prepared for more
issues to come ;-)
Am 17.12.13 17:30 schrieb "Bjorn Reese" unter <breese_at_[hidden]>:
>On 12/17/2013 04:54 PM, Alexander Carôt wrote:
>> boost::asio::io_service::work work(dFC->io_service);
>> boost::thread myThread(boost::bind(&boost::asio::io_service::run,
>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.
>Boost-users mailing list
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