LazSynaSer on OSX 10.13 (High Sierra) lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- JimKueneman · 2022-11-21 19:43 Transitioning over from Synapse to Indy and needed a ComPort component so I grabbed LazSynaSer.  I can not get it to connect to anything with the changes that were made in the Purge method.  If I change it back to what SynaSer did it works.  During the Purge call I get "This is not a Typewriter" error code. I pulled the version of LazSynaSer from the GitHub repository a few days ago and using Lazarus 2.2.4. 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 {$IFDEF DARWIN}   // JDKfunction real_tcflush(fd,qsel: cint): cint; cdecl; external name 'tcflush'; function TCFlush(fd,qsel:cint):cint;  {$ifdef VER2_0}inline;{$endif}begin  TCFlush:=real_tcflush(fd,qsel);end;{$ENDIF} {$IFNDEF MSWINDOWS}procedure TBlockSerial.Purge;begin  {$IFNDEF FPC}  SerialCheck(ioctl(FHandle, TCFLSH, TCIOFLUSH));  {$ELSE}    {$IFDEF DARWIN}    SerialCheck(TCFlush(FHandle, TCIOFLUSH));                             // JDK  //  SerialCheck(fpioctl(FHandle, TCIOflush, Pointer(PtrInt(TCIOFLUSH))));    {$ELSE}    SerialCheck(fpioctl(FHandle, TCFLSH, Pointer(PtrInt(TCIOFLUSH))));    {$ENDIF}  {$ENDIF}  FBuffer := '';  ExceptCheck;end;{$ELSE}  Thoughts? Jim ---------------------------------------------------------------------- Jurassic Pork · 2022-11-21 23:37 Hello, last versions of synaser.pas and lazsynaser.pas use the same code for purge (except for freeBSD that lazserial doen't manage) I have no problem on MAC OS catalina 10.15 using two USB serial ports. Friendly, J.P ---------------------------------------------------------------------- JimKueneman · 2022-11-22 15:55 Ok thanks.  I would get that error on anything I tried to open including the Bluetooth cu and tty versions.  Do you know the reason it was changed?  Is there something concerning about the old way? Jim ---------------------------------------------------------------------- Jurassic Pork · 2022-11-22 16:08 Have a look     here  ( no comment    )