in , CSerialPortWinBase::stopThreadMonitor()
there is an error in the parameter handle of SetCommMask.
bool CSerialPortWinBase::stopThreadMonitor()
{
// Finished
SetCommMask(m_monitorThread, 0);
^^^^^^^^^^^^ should not be the thread handle but the port handle
....
in , CSerialPortWinBase::stopThreadMonitor() there is an error in the parameter handle of SetCommMask.
btw: nice work thx for sharing