I am trying to catch an exception that is generated when a TCP client connection is attempted when the connection is already connected. The code that I am using us shown below.
All I get is a message on the screen as also shown below.
How do I suppress this message and catch the exception in my code ?
I a using Embarcadero XE 10.1 berlin C++ Builder with an Indy 10 TCP client component.
void __fastcall TForm1::Button2Click(TObject *Sender)
Memo1->Lines->Add(u"Failed to connect");