From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: *HELP* matrix crashing problem Date: Sun, 7 Mar 1999 17:25:58 +0200 Organization: NetVision Israel Lines: 19 Message-ID: References: <36E11801 DOT E0AF6273 AT hotmail DOT com> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 920820367 29436 199.203.121.2 (7 Mar 1999 15:26:07 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 7 Mar 1999 15:26:07 GMT X-Sender: eliz AT is In-Reply-To: <36E11801.E0AF6273@hotmail.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 6 Mar 1999, pcgamesmaster AT hotmail DOT com wrote: > Shutting down Allegro > Exiting due to signal SIGFPE > Floating Point exception at eip=0000ea5f > eax=00000c7e ebx=00092808 ecx=00092804 edx=00000c7e esi=ff9a4ef4 > edi=ff9a4eac > ebp=00000000 esp=ff9a4d74 program=C:\BIN\A.EXE ^^^^^^^^^^^^^^^^^^^^^^^^^ See? Your stack is blown, probably by some code that overwrote the stack frame. Popular reasons for this include: writing beyond the end of an array, or passing incorrect arguments to functions (like passing an int to a function that expects a double). See section 12.2 of the DJGPP FAQ list (v2/faq211b.zip from the same place you get DJGPP), for more explanations about these problems. That section also explains how to begin debugging your problem using the info printed when the program crashed.