www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/02/17:58:28

From: mrkite AT cyberjunkie DOT com (Marco Salvalaggio)
To: djgpp AT delorie DOT com
Cc: Eyal Ben-David <eyalb AT aks DOT com>
Subject: Re: Serious djgpp problem with exceptions ?
Date: Sun, 02 Feb 1997 22:47:01 GMT
Message-ID: <32f91961.3151358@newmail.mclink.it>
References: <2 DOT 2 DOT 32 DOT 19970202174153 DOT 00687a54 AT mailhost>
In-Reply-To: <2.2.32.19970202174153.00687a54@mailhost>
MIME-Version: 1.0

On Sun, 02 Feb 1997 15:41:53 -0200, Eyal Ben-David <eyalb AT aks DOT com> wrote:

>This is a problem with g++ in general. Not necessarilly with DJGPP.
>
>When you throw a derived class and the exception handler catches the =
base class
>type, you must add RTTI to your program. Try the `-frtti' switch.
>
>                                      E-mail   eyalb AT aks DOT com
>Aladdin Knowledge Systems Ltd.        Ph#  +972 3 6362222
>P.O.Box 11141 Tel-Aviv 61110 Israel   Fax# +972 3 5375796
>
>See us at our Web site at http://www.aks.com
>

That's it ! Many thanks. But now comes to me another question. I guess =
that
using RTTI means adding some extra overhead to my app, so I can't use
polymorphic exceptions without losing something in efficiency ? In other
word, it's supposed to work this way or there are plans to fix it in
g++/djgpp ?

Marco

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019