delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/24/05:48:33

Date: Sun, 24 Jan 1999 11:10:50 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Benjamin Cutler <chrystis AT ibm DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Floating Point Problems... HELP
In-Reply-To: <36AAA3C3.6DB3459F@ibm.net>
Message-ID: <Pine.SUN.3.91.990124110655.4501X-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 23 Jan 1999, Benjamin Cutler wrote:

> I trying to write a program. It's supposed to draw two triangles on the
> screen, and then move them back and forth. It draws them once, but then
> once it tries to redraw the moved triangles it crashes with a
> "floating-point exception". Can anybody offer any help?

Your program probably does something invalid, like dividing by zero.  
Section 12.2 of the DJGPP FAQ list explains how to debug such problems 
using the crash traceback as a starting point.

> Do I need to go into more detail here?

If the FAQ doesn't help you, you definitely need to post more info.  For 
starters, find out where exactly does the program crash (use the `symify' 
utility, like the FAQ explains, for that), and post the code near that 
place.

It is also a good idea to post the exact crash message, complete with 
registers' dump and stack traceback, when reporting crashes.  People who 
know how to read that info can find some crucial hints therein.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019