Mail Archives: djgpp/1997/05/23/05:52:18
Bowers wrote:
>
> whenever I program anything using DJGPP, I always get some sort of
> segmentation error. How do I aviod this, and what exactly is a
> segmentation error?
A segmentation violation means that you tried to access memory that
you're not allowed to access under protected mode. This would occur if
you're dereferencing a NULL pointer, or attempting to access video
memory at 0xA0000. Please download and read the DJGPP Frequently Asked
Questions list (v2/faq210b.zip from SimTel), and read chapters 6, 8, and
particularly 10. It would also be nice if you would post some sample
code along with the commands you use to compile it and a copy of the
symified crash traceback.
hth
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com |
| Proud owner of what might one | http://www.cs.com/fighteer |
| day be a spectacular MUD... | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------
- Raw text -