www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/10/10/06:28:20

Date: Sun, 10 Oct 1999 12:21:16 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Nicolas Blais <nicblais AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Please help...matrix problem with Allegro
In-Reply-To: <7tm800$inr$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.991010122036.19618N-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sat, 9 Oct 1999, Nicolas Blais wrote:

> Thanks but it STILL doesn't work.  Here's what symify tells me:
> 
> Shutting down Allegro
> Exiting due to signal SIGSEGV
> Stack Fault at eip=00002399
> eax=00000000 ebx=001191df ecx=49edf742 edx=16e7bc99 esi=00000054 edi=00099204

This line:

> ebp=001191c0 esp=fffed1b4 program=C:\DJGPP\PROJECTS\ILLIS\MAIN.EXE

together with this line:

> App stack: [00119204..00099204]  Exceptn stack: [000990e4..000971a4]

Indicates that your program blows away the stack: ESP is outside the
valid limits of the application stack.

Section 12.2 of the DJGPP FAQ list explains how to read the crash
message; please read it.

> unsigned int matrix[res_x][res_y];
> memset(matrix, 0, sizeof(matrix));  //line 48

What are the values of res_x and res_y, and how they were decalred?

- Raw text -


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