Recent

Author Topic: LazSerial's WriteBuffer freezes entire application forever  (Read 2484 times)

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 12318
  • FPC developer.
Re: LazSerial's WriteBuffer freezes entire application forever
« Reply #15 on: May 05, 2024, 11:44:30 pm »
I don't use lazserial (but the Delphi comport unit), but the trick is to see if there is some call to see how much bytes you can safely read (without blocking) and then read them, and do that in a loop with a sleep in it, or on a timer or so.

Or otherwise a function read with a timeout value.

 

TinyPortal © 2005-2018