Mail Archives: djgpp/2000/05/28/13:18:24
> From: joel_hansell AT my-deja DOT com
> Newsgroups: comp.os.msdos.djgpp
> Date: Sun, 28 May 2000 15:54:49 GMT
>
> but at runtime I get the following:
>
> Program exit code 255 (0x00ff)
> Call frame traceback:
> 0x00001019 ???
>
> stderr:
> Exiting due to signal SIGSEGV
> GPF at eip=00001019, error=2800
> and then lots of assembly code. If it would be
> helpful, I can post the whole of it.
Yes, please post all of the crash message, it includes lost of
important information. Section 12.3 of the DJGPP FAQ explains how to
get an idea about the reason(s) of your crash using that info. I
suggest to read that section, it might even help you find the bug by
yourself.
In this case, it looks like your code blew up the stack, e.g. by
overwriting some automatic array. But it's very hard to know for sure
without seeing the crash message.
> Perhaps I must define the size of the array, like
> "Port* level[5]"? /*
Yes, you need to give a dimension.
- Raw text -