14 Oct
2009
14 Oct
'09
5:13 p.m.
Igor R ha scritto:
Yes, the setTimer is called, but the timer callback not!
You call expires_from_now and async_wait from setTimer(), and the handler is not called? Well, that's weird. Ensure you pass reasonable time duration. Try to use the overload that returns an error: boost::system::error_code er; expires_from_now(seconds(1), er);
Oh, I'm sorry. It was my fault. I forgot to remove a call, all these test make me crazy!! :-P Calling: rx_timer_.get_io_service().post(boost::bind(&WaveStream::StartTimer, this)); the StartTimer is not called!!! So... The io_service should be running but the post() does not work so, what can I check? Thanks for the support! Daniele.