🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4834

Re: TNMHTTP component

#4834
From: Mark Jacobs
Date: Wed, 24 Nov 2004 11:10
65 lines
2344 bytes
Try this catcher :-

  try
  {
    try
    {
      try
      {
        // Loads of stuff that could throw this exception you're getting
      }
      __except(EXCEPTION_EXECUTE_HANDLER)
      {
        ShowMessage("C Exception Caught");
      }
    }
    catch (Exception &excp)
    {
      ShowMessage(excp.Message);
    }
  }
  __finally
  {
    // Clean up code ..
  }

-- 
Mark Jacobs
DK Computing
http://www.dkcomputing.co.uk

"Jonas Andersson" <x57001@hotmail.com> wrote in message
news:419b7fa5@newsgroups.borland.com...
| Same error with
|  try
|         {
|   NMHTTP1->Get( LE_Filename->Text );
|         }
|         catch( const Exception & )
|         {
|          ShowMessage("this will not show up :(");
|         }
|
|
| Exception is ESockError of type "Host lookup failed"
| /Jonas
|
|
| "Remy Lebeau (TeamB)" <no.spam@no.spam.com> skrev i meddelandet
| news:41995169@newsgroups.borland.com...
| >
| > "Jonas Andersson" <x57001@hotmail.com> wrote in message
| > news:41994944@newsgroups.borland.com...
| >
| > >         catch(...)
| >
| > You should be catching VCL exceptions explitcially, not using "...":
| >
| >     catch(const Exception &)
| >
| >
| > Gambit
| >
| >
|
|
Technical Details
Message-ID: <41a46c38$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <41994944@newsgroups.borland.com> <41995169@newsgroups.borland.com> <419b7fa5@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,30fed71d8132c844
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mark Jacobs" <http://www.jacobsm.com/mjmsg?Borland%20Newsgroup>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <41994944@newsgroups.borland.com> <41995169@newsgroups.borland.com> <419b7fa5@newsgroups.borland.com>
Subject: Re: TNMHTTP component
Date: Wed, 24 Nov 2004 11:10:52 -0000
Lines: 67
Organization: DK Computing
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1437
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441
NNTP-Posting-Host: 81.144.157.8
Message-ID: <41a46c38$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1101294648 81.144.157.8 (24 Nov 2004 03:10:48 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!border2.nntp.ams.giganews.com!nntp.giganews.com!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail