delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/12/05:38:41

Message-ID: <006101bc7714$4ba6b8c0$53f8c6c3@johan>
From: "Johan Henriksson" <johan DOT he AT telia DOT com>
To: <djgpp AT delorie DOT com>
Subject: Re: program compiles fine, exe crashes
Date: Thu, 12 Jun 1997 11:35:58 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.1
X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3
Reply-To: djgpp AT delorie DOT com

from Johan Henriksson   Second: jhe75 AT hotmail DOT com
Primary mail: johan DOT he AT telia DOT com
Leadprogrammer and FX-specialist at Real software
http://realsoftware.cjb.net         #UIN 12035895
*****************************************************************
>Hi,
>     I have been having trouble getting the .exe file created by a c
>file I wrote to work. The c file compiles without any trouble, and I can
>run it from Rhide (v 1.4). When I try to run the exe file outside of
>Rhide, however, it crashes after getting through the first 500 lines or
>so - i.e. into the main loop of the program. I get an error message
>saying:
>Shutting down Allegro
>Exiting due to signal SIGFPE
>Floating point exception at eip=00016054

I have found this to mean 'Divide by zero' sometimes. Weird error, really...

>followed by memory addresses which don't point to any crucial part of my
>program.

The best way to find the problem is to keep track of the code you know works
and the code you just written. I mean, last time you compiled, did it run as
it should then? Then the new code must contain the error.

>     If needed, I can attach the c file or the program, but they're both
>somewhat large (100 Kb and a 1.3 MB zip file, respectively).

Glad to see that someone is smart enough to not send big binaries to the
list...

> I have
>tried running the program on several different computers with the same
>results (all in Win95, running about a P166).

Well, then it gotta be the code

>I also tried adding a
>floating point emulator to the exe (adding -lemu to the linker command
>line).
>     Thanks for your help.
>
>Dave Chodos
>leischod AT golden DOT net
>
>

- Raw text -


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