Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost ASIO issue
From: Zachary Turner (divisortheory_at_[hidden])
Date: 2010-03-04 23:49:38


>
> If the handlers are not invoked, your io_serivce probably isn't
> running. Try to add a log message after io_service::run() call, so
> that you'll see when it exits. If your design needs io_service
> restart, don't forget to call io_servie::reset() before any subsequent
> run().

I second this recommendation. I once spent a long time trying to
figure out a similar problem and when i stepped into io_service::run
it returned immediately and i felt pretty stupid when i saw why.

Zach


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