delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/05/28/13:18:24

Message-Id: <200005281717.UAB14965@alpha.netvision.net.il>
Date: Sun, 28 May 2000 20:16:59 +0200
X-Mailer: Emacs 20.6 (via feedmail 8.1.emacs20_6 I) and Blat ver 1.8.5b
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
To: joel_hansell AT my-deja DOT com
CC: djgpp AT delorie DOT com
In-reply-to: <8grfga$h00$1@nnrp2.deja.com> (joel_hansell@my-deja.com)
Subject: Re: Array of home-made class, C++ game
References: <8grfga$h00$1 AT nnrp2 DOT deja DOT com>
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> 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 -


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