Mail Archives: djgpp/2001/05/26/16:09:01
> From: "Maverick" <vhd AT chello DOT at>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sat, 26 May 2001 10:16:07 GMT
>
> I just finished my first program with DJGPP, it does not much more than
> calculate a few entries in an array off two other arrays. It compiles and
> links without errors, however when I run the EXE-file, I get the following :
>
> -------------------------------------------------------------
> Exiting due to signal SIGSEGV
> Page fault at eip = 000019d3, error = 0006
You are accessing memory with a bad pointer. Section 12.2 of the
DJGPP FAQ list explains how to interpret this crash message and how to
start debugging your program using this information.
> And now for the funny thing. This error happens always when the EXE is
> executed from the DOS-Prompt of Win98SE-Dos Box. When I launch it from RHIDE
> (started in Win98SE-Dos Box) it sometimes works just fine, and sometimes
> gives me out the same error as above.
This is typical for using uninitialized pointers: you get the random
garbage that happens to be in memory.
- Raw text -