IdSSLOpenSSL.pas : ERangeError occurred

Giganews Newsgroups
Subject: IdSSLOpenSSL.pas : ERangeError occurred
Posted by:  taka (no.spam@okamerin.com)
Date: Wed, 11 Jul 2007

IdSSLOpenSSL.pas : ERangeError occurred

IdSSLOpenSSL.pas
set break point 1384: LByteCount = -1
  ERangeError : line 1385

1384 LByteCount := Recv(LBuffer);
1385 SetLength(LBuffer, LByteCount);

-->
1384: LByteCount := Recv(LBuffer);
      if (LByteCount <= 0) then LByteCount := 0;
1385: SetLength(LBuffer, LByteCount);

Replies