Loosing bytes under WindowsNT 4.0 Service Pack 3 when reading from a serial port.
I have an external datasource which responds immediately after sending bytes.
The program I wrote to communicate with the external datasource works fine under Windows95, but under WinNT some bytes of the response do not appear in the inputqueue.
The communication does not run very quickly. (19200 Baud, Even Parity, 1 Stop)
Fifo is enabled.
During my investigations I found out that the bytes collected by the serial port are transferred very slowly to the inputqueue under WinNT.
The whole communication is programmed to run in an extra thread.
The program is not written eventdriven, because then it reacts too slow.
Basic communication routines in serial.cpp are :
example routine in comthr.cpp:
What do I have to do, that the system does not loose bytes.
Can I tune the Comport in system initialisation?