I dynamically create IdHTTP, execute a POST request to my php script. Source example:

http := TIdHTTP.Create(Nil); try sl.add('name=value'); try html.Text := http.Post('http://page.ru', sl); finally http.Free(); end; except on E: EIdException do begin // исключение end; end; 

One of the users of the program regularly flies the following exceptions:

Socket Error # 10038 Socket operation on non-socket.

Socket Error # 10038 Socket operation on non-socket.

Socket Error # 10004 Interrupted system call.

Socket Error # 10004 Interrupted system call.

I read the description on MSDN, but how to solve it is not clear. Help Wanted!

  • Version Delphi XE5 - Robert
  • Better give part of the real code. Or is this the MCVE, which also causes an exception? What does this user have with a firewall? - kami
  • @kami, he claims the firewall is disabled. These errors do not occur every time, but at a random moment. - Robert
  • @kami, it makes no sense to bring the real code - almost the same thing is there. TLicense class for checking the user's license on the computer's hwid. At the beginning of the get request for checking application last version and then a post request in which hwid + control_header is sent, covered by des \ aes. And in response, either an error code or a positive response and the signatures required for the application to work - Robert
  • Is the code above causing an exception? - zed

0