parmaja / minilib

MiniLib Pascal/Delphi library
Other
74 stars 19 forks source link

MiniComm Package happen error #10

Open jiangwei7480 opened 6 months ago

jiangwei7480 commented 6 months ago
procedure TmnCommThread.Execute;
begin
  try
    while not Terminated and FCommStream.Connected do
    begin
      if not UseWait or (FCommStream.WaitRead) then;
      begin
        if not Terminated and FCommStream.Connected then
          StringArrived(FCommStream.ReadString(255)); {$Warning Why it is 255? }
      end;
    end;
  finally
  end;
end;                    

Error is function FCommStream.ReadString(255),loss one parameter ,but stringArrived函数parameter type is string!

JonnyTech commented 6 months ago

Compiler? Operating system? Versions? Full code please.