Details
-
Bug
-
Resolution: Cannot Reproduce
-
P4: Low
-
5.2.1
-
None
-
Windows 7;
Tested with real serial port and with "VSPE" emulator by Eterlogic.
Description
Following piece of code:
QSerialPort * port = new QSerialPort(this);
port->setPortName("COM1");
port->open(QIODevice::ReadWrite);
port->write("12");
port->write("3");
port->flush();
port->close();
port->open(QIODevice::WriteOnly);
port->write("4");
port->flush();
port->flush();
port->close();
Sends in fact the following string: "12123444".
In my opinion, this looks like SerialPort's buffer isn't cleaned after ultimate submission of its data.