delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/05/05:33:52

From: Thomas Knudsen <tk AT geb DOT gfy DOT ku DOT dk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Line Drawing
Date: Tue, 5 Aug 1997 09:21:06 +0200
Organization: News Server at UNI-C, Danish Computing Centre for Research and Education.
Lines: 31
Message-ID: <Pine.SGI.3.95.970805091225.11428A-100000@geb.gfy.ku.dk>
References: <01bca164.ac490780$8553f7c7 AT humbug>
NNTP-Posting-Host: geb.gfy.ku.dk
Mime-Version: 1.0
In-Reply-To: <01bca164.ac490780$8553f7c7@humbug>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On 5 Aug 1997, James T'seleie wrote:

> I was wondering if anybody could give me a simple line drawing algorithm
> that works in DJGPP.  I wrote a program, that I thought would work, but it
> comes up with an error that I can't figure out.  Maybe someone could tell
> me what this means, and I could fix it myself.  Anyway, the error I get
> says something about a page fault at eip=00001691, and then a whole bunch
> of other sutuff that has to do with registers.  At the bottom of the
> message it says "call frame traceback EIPs: 0x00001691 and 0x00001bfe"  If
> anybody could offer some help with this it would be greatly appreciated. 
> Thanks.

try to recompile your program with debugging information included, i.e. 
use "gcc -o myprog -g myprog.c" from the command line, or add the "-g" to
the CFLAGS variable if using a makefile. Then run the program. When it
bombs, and while the bombing information is still on screen, run the
symify utility: "symify myprog.exe". symify will convert the adresses, you
see in the last gasps of the program, to a human readable traceback of the
last function calls carried out when the program died. This traceback
should give you an idea as of where to start revising your code

Thomas

--
Thomas Knudsen                         | www:  http://www.gfy.ku.dk/~tk/
National Survey and Cadastre - Denmark | e-mail:            tk AT gfy DOT ku DOT dk
Geodetic office, Rentemestervej 8      | Direct Phone:   +45 35 87 52 64
DK-2400 Copenhagen NV, Denmark         | FAX:            +45 35 87 50 52



- Raw text -


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