Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 192
  • Last Modified:

Ignoring Application Runtime Errors

when i use TClientSocket and try to connect an address that doesn't exists "Asynchronic Socket" i get an application runtime error, how can i disable that error message and let the application continue with the socket inactive?
0
tomerlei
Asked:
tomerlei
1 Solution
 
gmayoCommented:
You need to implement the OnError event and then set the ErrorCode variable to 0.

ie:
procedure TSSIForm.ClientSocket1Error(Sender: TObject;
      Socket: TCustomWinSocket; ErrorEvent: TErrorEvent;
      var ErrorCode: Integer);
begin
      ErrorCode := 0;
end;

Geoff M.
0

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now