Hi, I move my app from ICS v5 to v6 and notice randomly AV in TCustomWSocket.Receive:
Advertising
function TCustomWSocket.Receive(Buffer : TWSocketData; BufferSize: Integer) : Integer;
begin Result := DoRecv(Buffer, BufferSize, 0); if Result < 0 then FLastError := WSocket_Synchronized_WSAGetLastError else { Here we should check for overflows ! It is well possible to } { receive more than 2GB during a single session. } { Or we could use an Int64 variable... } FReadCount := FReadCount + Result; <<< AV Here ! end; AV always at FReadCount := FReadCount + Result; line. My app use TSmtpCli in async mode and PingThread by Angus Robertson. IDE = BCB6. I never notice this problem with ICS v5. Maybe I must update some my code to avoid problems with V6 ? --- With best regards, Max Terentiev. Business Software Products. AMS Development Team.supp...@bspdev.com
-- To unsubscribe or change your settings for TWSocket mailing list please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket Visit our website at http://www.overbyte.be