Mail Archives: djgpp/1999/10/10/06:28:20
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 -