From: sparhawk AT eunet DOT at (Gerhard Gruber) Newsgroups: comp.os.msdos.djgpp Subject: Bug in DJGPP with exceptions? Date: Sun, 28 Jun 1998 11:30:04 GMT Organization: Customer of EUnet Austria Lines: 36 Message-ID: <35962535.6464680@news.Austria.EU.net> NNTP-Posting-Host: e019.dynamic.vienna.at.eu.net 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 Precedence: bulk I wrote a program that throws an exception when you read beyond EOF on a file. f(int i) { if(i > Filelen) { errno = EDOM; throw(errno); } } a() { try { f(x); } catch(int error) { break; } } The exception doesn't get caught and I alwasy get "Abort!" though I didn't change anything in the source and it worked with gcc 2.7. I also tried -fexceptions but there is no difference. Any suggestions? -- Bye, Gerhard email: sparhawk AT eunet DOT at g DOT gruber AT sis DOT co DOT at Spelling corrections are appreciated.