El 26/06/2017 a las 16:27, Bo Berglund via Lazarus escribió:
> The problem is that afik the TIdTcpClient.IOHandler.ReadBytes will
> throw an exception if the number of bytes requested do not appear
> within the timeout.
> It looks like if one specifies read length as -1, then the exception
> is not thrown if there are no data, it just waits for the timeout.
> I have yet to see a property telling me how many bytes are currently
> available to be read from the component...
>
> Regarding exceptions in general, I would like to see a trap (stop on
> exception) if there is no defined except clause to handle it. But if
> there is the exception should be processed without any notification
> from the debugger.
> One can always put a breakpoint inside the exception handler code if
> one wants to see what is ahppening..
|Just read this
|

https://stackoverflow.com/questions/13839094/how-to-read-all-bytes-from-server-using-indy-client-in-delphi


-- 
Saludos

Santiago A.

-- 
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus-ide.org
http://lists.lazarus-ide.org/listinfo/lazarus

Reply via email to