our application works fine when installed in local machine.
If we move our application to terminal server and try to access port we have some probels
Reading causes exception when there is no data available
EVaCommError: Read error (38), Reached the end of the file.
code is very simple
with comport do
while ReadChar(ch) do
begin
s := s+ ch;
end;
of cource we could write exception handler .. but I'm confused we this occurs only in terminal server.
and I think that readchar sould return false when there is no data?