Message-ID: <35D15062.B4DC35DB@megalink.net> From: Chris Bill MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: try, throw, and catch woes Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 26 Date: Wed, 12 Aug 1998 08:20:50 +0000 NNTP-Posting-Host: 208.148.249.218 NNTP-Posting-Date: Wed, 12 Aug 1998 04:16:46 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Can someone please tell me what is wrong with this code? (Using GCC 2.8.1 w/DJGPP 2.x): #include int main( ) { try { throw 10; } catch( int num ) { cout << "Nifty... cought: " << num << endl; } return 1; } Whenever I run the resultant executable, my computer reboots (before printing the message)! Thankfully, the reboot is from Win95 to Linux... maybe DJGPP is trying to tell me something :) Regards, Chris Bill