Date: Sun, 10 Oct 1999 12:21:16 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Nicolas Blais 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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, 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?