Whene there are no ports available to Windows, ComPort
library crashes. Reason:
In CportCtl.pas:
// select port property
procedure TComSelect.SelectPort;
begin
Items.Clear;
EnumComPorts(Items);
end;
Call to EnumComPorts() will throw an exception. This
exception is not caught in SelectPort.
The change below should be sufficient:
// select port property
procedure TComSelect.SelectPort;
begin
Items.Clear;
try
EnumComPorts(Items);
except
end;
end;