www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/03/12:30:34

From: "Mars" <mars AT homemail DOT com>
Sender: "Mars" <marsj AT 195 DOT 158 DOT 64 DOT 19>
Reply-To: "Mars" <mars AT homemail DOT com>
Subject: Crash in class when adding new variables
Newsgroups: comp.os.msdos.djgpp
NNTP-Posting-Host: 195.158.64.81
Message-ID: <35eec1db.0@195.158.64.19>
Date: 3 Sep 1998 18:20:43 +0100
Lines: 29
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I have a class containing several (about 10) integer variables,
a pointer to a BITMAP and a pointer to an array of pointers which point to
instances of another class.

This was working fine, until I inserted another integer variable.
The program compiles fine, but when I run it, it exits with exit code 255
immediately.
Also the following error is shown in the err window:
Shutting down allegro
Exiting due to signal SIGSEGV
General protection fault at EIP=000f07a
(plus the contents of the registers)

Also in the rhide error window, the following is shown:
Call frame traceback:
in function pack_fopen+2
in function __ctrl_startup+138

I tried inserting different types of variables, but the same error occurs.
 I also tried a new class inheriting the old class and inserting the variable
in the new class, but to no avail.

I wonder if there is some memory limit (like 64K in Borland Pascal) to the
size of a class?

Can anyone figure out whats happening?
Thanks
Mars

- Raw text -


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