Article View: borland.public.cppbuilder.internet.socket
Article #5287ESocketError
From: JD
Date: Sat, 18 Sep 2004 00:55
Date: Sat, 18 Sep 2004 00:55
32 lines
1655 bytes
1655 bytes
Why can't I catch ESocketError?
//--------------------------------------------------------------
void __fastcall TForm1::Button1Click(TObject *Sender)
{
try
{
try
{
try
{
ClientSocket1->Open();
}
catch( ESocketError &E )
{
MessageDlg("ESocketError : " + E.Message, mtError, TMsgDlgButtons() << mbOK, 0 );
}
}
catch( Exception &E )
{
MessageDlg("Unable to connect to server : " + E.Message, mtError, TMsgDlgButtons() << mbOK, 0 );
}
}
catch( ... )
{
MessageDlg("Unknown error", mtError, TMsgDlgButtons() << mbOK, 0 );
}
}
//--------------------------------------------------------------
~ JD
Technical Details
Message-ID:
<414b8772$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 11508e,2a74cb97a91b535d,start X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit From: "JD" <nospam@nospam.com> Sender: "JD" <nospam@nospam.com> Reply-To: "JD" <nospam@nospam.com> Subject: ESocketError Newsgroups: borland.public.cppbuilder.internet.socket X-User-Info: 172.175.158.76 NNTP-Posting-Host: 207.105.83.66 Message-ID: <414b8772$1@newsgroups.borland.com> Date: 17 Sep 2004 17:55:14 -0700 X-Trace: newsgroups.borland.com 1095468914 207.105.83.66 (17 Sep 2004 17:55:14 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail