Boost logo

Boost Users :

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


> I have the following simplified code to read data from a RS232 port. For some
> (from beginning) runs, io.run() returns immediately and m_handler() is
> called which is expected. but sometimes (a fresh run from beginning),
> io.run() goes into a inside forever loop(stacked inside forever) even for
> the first time called inside the while loop. And this happens randomly.
> What's is/are the potential problem(s) at here?

In your code, it means that no data can be read from the port.


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