
8 Apr
2009
8 Apr
'09
5:05 p.m.
Daniele Barzotti ha scritto:
Daniele Barzotti wrote:
Ok, I've found the problem. .... But I've another issue on reading...
My reading procedure is:
SerialPort::read_start | | SerialPort::read_complete | | (Start an rx timer) | | SerialPort::Timer_Expired | | Raise the 'event' DataReveived
the SerialPort::read_complete is not called.
Ok, it's not called because the io_service thread was terminated! I've thought that while there was a call to async_read_some the thread was running...now I've used the io_service::work and everything work. Thanks.