delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/17/21:15:25

From: akallio AT finlink DOT net (Aleksi Kallio)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Getting useful information from the traceback
Date: Tue, 16 Dec 1997 19:51:40 GMT
Message-ID: <34969fd9.11238952@195.10.154.8>
References: <3495F8E1 DOT 1C87 AT indy DOT net>
NNTP-Posting-Host: dial046.finlink.net
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>in.  However, now that I know *where* the problem occurs, I am still not
>sure *why*.  

It is said. Page Fault.

>For example, am I dividing by
>zero, writing beyond the bounds of an array, etc?  

If it was divide by zero, it would be said. Divide by Zero at
eip=something..

>Exiting due to signal SIGSEGV
>Page fault at eip=0000e5c7, error=0006

This one is a proglem with memory, I think. Mostly I get these when I
use big arrays or structures and allocate them directly:

int BigArray[1000000];

So, this would be:

int *BigArray = new int[1000000]; 

Hope this helps..



    -=  Mikko Aleksi Kallio   -   Acute / Hubris^BoSH  =-
 -=  www.finlink.net/~akallio/   -   akallio AT finlink DOT net  =-

- Raw text -


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