Newsgroups: comp.os.msdos.djgpp From: mheumann AT hotbot DOT com (Manni Heumann) Subject: Catching Exceptions X-Newsreader: News Xpress 2.01 Date: Sun, 06 Dec 1998 16:16:15 GMT NNTP-Posting-Host: ppp39-75.hrz.uni-bielefeld.de Message-ID: <366aada2.0@news.uni-bielefeld.de> X-Trace: 6 Dec 1998 17:15:30 +0200, ppp39-75.hrz.uni-bielefeld.de Lines: 31 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi all! I am doing a little C++ programming and I am trying to catch exceptions that are thrown by some STL-functions / classes. Example: vector myvec; try { while (1) myvec.push_back (0); } catch (...) { // ..do something.. } When the system finally runs out of memory, shouldn't it throw an exception and should't I be able to catch it? Am I doing something stupid here? Or just something wrong? I am using DJGPP 2.8.1 with the correct spec-file. Thank you, Manni Heumann, Bielefeld, Germany e-mail: mheumann AT post DOT uni-bielefeld DOT de