Synaser blokcing port lazarus / 21-General ---------------------------------------------------------------------- backprop · 2024-02-18 16:54 I have made very simple console app which should constantly read data from serial device with current synaser form package manager. However, when app is terminated/killed, port remain blocked until reset computer. That is simply unfortunate. If there another way to do such simple log, but without blocking port? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i program seriallog; uses  synaser; var  ser: TBlockSerial;  s: string;begin   ser := TBlockserial.Create;  try    ser.RaiseExcept := True;     ser.Connect('/dev/ttyUSB0');    ser.Config(115200, 8, 'N', 0, False, False);     while not (ser.LastError <> 0) do    begin      if ser.lastError <> 0 then break;       if ser.canread(1000) then      begin        s := ser.Recvstring(1000);        write(s);      end;   end;   finally    ser.Free;  end; end.