Article View: borland.public.cppbuilder.upgrade
Article #2362Exception Error
From: Tobias Kloss
Date: Fri, 04 Feb 2000 00:00
Date: Fri, 04 Feb 2000 00:00
25 lines
1184 bytes
1184 bytes
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);
throw;
}
Builder 3 first showed the MessageBox "Here" and then the Exception
Message "This in an Error".
Builder 4 showed the MessageBox "Here" and after that a windows-error
msg "Zugriffsverletzung" (dont know in english) .
Normally, the "throw" has to pass the EConvertError (or any other error)
to the next parent code, which displays the error-message "This is an
Error".
Is this bad programming of me which the Version 4 does not accept
anymore or an error of the
compiler?
Tobias Kloss
Technical Details
Message-ID:
<389B4B67.110C0A0A@gmx.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10529a,a57bba1d4d64d12c,start X-Google-Attributes: gid10529a,public From: Tobias Kloss <tkloss@gmx.de> Subject: Exception Error Date: 2000/02/04 Message-ID: <389B4B67.110C0A0A@gmx.de> X-Deja-AN: 581681565 Content-Transfer-Encoding: 7bit Organization: JANKOESTER GmbH Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.cppbuilder.upgrade