Boost logo

Boost Users :

Subject: Re: [Boost-users] boost::io_service run() never returns
From: Igor R (boost.lists_at_[hidden])
Date: 2013-07-06 16:42:47


> Thanks for replying. I may oversimplify my original code in the post, but
> this piece of code can run and read data from the port. The only problem is
> unstable.
>
> Here is my original code modify from a previous version posted on this
> board. Again this program can successfully read data from a third part
> device (which writes data to the RS232 port at certain sampling frequency),
> but just unstable some times.

I'm not an expert, but at a glance your code (at least its
asio-related part) looks to me correct. I'd suggest you to build your
project with BOOST_ASIO_ENABLE_HANDLER_TRACKING macro defined and to
see where the flow goes when the applications enters the undesired
state.


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