From: mrkite AT cyberjunkie DOT com (Marco Salvalaggio) Newsgroups: comp.os.msdos.djgpp Subject: Re: Serious djgpp problem with exceptions ? Date: Sun, 02 Feb 1997 13:32:27 GMT Lines: 33 Message-ID: <32fa975c.5688148@news.ind.mh.se> References: <32f93129 DOT 6685902 AT news DOT ind DOT mh DOT se> <32f3bbc4 DOT 53222 AT seashell DOT california DOT com> NNTP-Posting-Host: pgw-082.mclink.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Sun, 02 Feb 1997 01:06:46 GMT, billlanam AT california DOT com (Bill Lanam) wrote: >On Sat, 01 Feb 1997 12:04:11 GMT, mrkite AT cyberjunkie DOT com (Marco Salvalaggio) >wrote: > >> [snip..] >> try >> { >> f2(); >> } >> catch( MyExcept& x ) // This one not ok. The program aborts. >if changed to catch '(MyOtherExcept& x)' it then works. > >> [snip..] Yes Bill, I know that. But the point is that I would like to catch it as a base class object since in my original app. I don't know exactly what kind of particular exception will be thrown, that's why I've created my own hierarchy of exception classes. I think that this is one of the most important task accomplished by exception mechanism, at least it saves me quite a lot of coding. At the moment I don't remember where, but I've read that the djgpp implementation of exceptions is under development and maybe this feature is still missing. If so I have to wait before switch from Borland to djgpp. > > Bill Lanam Thanks for your reply, anyway. Marco.