From: "Mark Figura" Newsgroups: comp.os.msdos.djgpp Subject: What the $##@$ is going on here!?!?!? Date: Mon, 24 Aug 1998 01:42:11 -0400 Organization: "SNET dial access service" Lines: 21 Message-ID: <6rqttc$dfl@news1.snet.net> NNTP-Posting-Host: sttn-sh4-port221.snet.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Hello. This is the weirdest problem I have ever seen. Here's what happens. I don't think code is needed, but if you wanna see the function, let me know. This one equation screws up the whole thing... var = (color1-color2)/(x1-x2); If I don't test to make sure that x1 != x2 before I use this equation, my memory gets all weird or something. (My triangle gets all big and weird looking). I should get a FPE, shouldn't I, if there's a divide by 0? Isn't this a problem with my processor then? The processor gives the FPE, right? Anyway, if I do test to make sure that x1 != x2, it works fine. What's wrong here? Mark