Solved

Ignoring Application Runtime Errors

Posted on 2003-12-11
1
187 Views
Last Modified: 2010-04-05
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
Comment
Question by:tomerlei
1 Comment
 
LVL 8

Accepted Solution

by:
gmayo earned 50 total points
ID: 9920503
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Comparing dates in Delphi. Greater than/ Less than 3 290
Downloading email attachments 2 83
firemonkey keyboard covers the controls 1 51
DBCtrlGrid, Delphi, Scroll 8 56
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

740 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question