From: "Rich Birch" Newsgroups: comp.os.msdos.djgpp Subject: Floating Point Exception Date: 18 Aug 1997 10:46:09 GMT Organization: UUNET Lines: 37 Message-ID: <01bcabc3$a01da100$5af382c1@damien> NNTP-Posting-Host: ad090.du.pipex.com To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have made a program that draws graphs of formulas. It uses Allegro for graphics. My problem is that when I run the executable from outside the editor (RHIDE) it crashes when trying to draw complicated graphs. This normally wouldn't be such a problem, as I could just run it from within RHIDE and then look at the frame trackback to see which function causes the crash. But, having tried this, the program doesn't crash when run through RHIDE, no matter how complicated the formula is! I get the following message when it crashes (run from W95):- Shutting down Allegro Exiting due to signal SIGFPE Floating Point exception at eip=000034f7 eax=00000c7e ebx=0007aa3c ecx=0007aa44 edx=00000000 esi=00000400 edi=00036adc ebp=0007a9d4 esp=0007a96c program=C:\CPP\BIN\FUNC.EXE cs: sel=00a7 base=8354d000 limit=000affff ds: sel=00af base=8354d000 limit=000affff es: sel=00af base=8354d000 limit=000affff fs: sel=00bf base=00000000 limit=ffffffff gs: sel=00bf base=00000000 limit=ffffffff ss: sel=00af base=8354d000 limit=000affff Call frame traceback EIPs: 0x000034f7 0x000042a7 0x0000402e 0x0002719e Can anyone help? Rich Birch