From: Sergio <434667 AT cepsz DOT unizar DOT es> Newsgroups: comp.os.msdos.djgpp Subject: C++ Problem Date: Wed, 24 Nov 1999 19:53:55 +0100 Organization: None! Lines: 17 Message-ID: <383C3443.362F@cepsz.unizar.es> NNTP-Posting-Host: merlin.unizar.es Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: posta2.unizar.es 943469865 23636 155.210.208.10 (24 Nov 1999 18:57:45 GMT) X-Complaints-To: usenet AT news DOT unizar DOT es NNTP-Posting-Date: 24 Nov 1999 18:57:45 GMT X-Mailer: Mozilla 2.0 (X11; I; HP-UX B.10.20 9000/802) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com This occurs only with djgpp, with another C++ compiler it just works. It is supossed this should write an '1' on stdout and exit, but instead it calls terminate(), it seems not to catch the exception. Why? Thanks #include int main(void) { try { throw 1; } catch (int i) { cout << i << endl; exit(i); } }