Article View: borland.public.cppbuilder.upgrade
Article #2363Re: Exception Error
From: Stefan Hoffmeister (TeamB)
Date: Fri, 04 Feb 2000 00:00
Date: Fri, 04 Feb 2000 00:00
37 lines
1338 bytes
1338 bytes
: Tobias Kloss <tkloss@gmx.de> wrote:
>Hi. After updating from C++ Builder 3 to 4, the following code does not
>work anymore:
>
> try
> {
> throw EConvertError("This is an Error");
> }
> catch (...)
> {
> Application->MessageBox("", "Here", MB_YESNO);
Correct. This is a problem in BCB4 - see the BCB4 bug list.
You can resolve this by not catching all exceptions, but by catching VCL
exceptions:
try
{
throw EConvertError("This is an Error");
}
catch (const Exception&)
{
}
catch (...)
{
}
--
General information:
* Post to the right group - http://www.borland.com/newsgroups/
* Do not cross- or multipost
* Research at http://www.mers.com/searchsite.html
Stefan Hoffmeister - http://www.econos.de/
TeamB - http://www.teamb.com/
Technical Details
Message-ID:
<2okm9skr0emmm0v2aj1bkbmdv6tqupjdcf@4ax.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<389B4B67.110C0A0A@gmx.de>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10529a,a57bba1d4d64d12c X-Google-Attributes: gid10529a,public From: "Stefan Hoffmeister (TeamB)" <Stefan.Hoffmeister@Econos.de> Subject: Re: Exception Error Date: 2000/02/04 Message-ID: <2okm9skr0emmm0v2aj1bkbmdv6tqupjdcf@4ax.com> X-Deja-AN: 581694929 Content-Transfer-Encoding: 7bit References: <389B4B67.110C0A0A@gmx.de> Organization: . Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.upgrade