delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/23/05:52:18

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: segmentation errors
Date: Tue, 20 May 1997 18:52:52 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 23
Message-ID: <3381F304.7B6E@cs.com>
References: <3380EF49 DOT 6B04 AT ntplx DOT net>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp106.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019