delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/05/19:15:37

From: a DOT gillett AT virgin DOT net (Andrew R. Gillett)
Newsgroups: comp.os.msdos.djgpp
Subject: How big can I make my array?
Date: Sat, 6 Jun 1998 00:08:38 +0100
Organization: Virgin Net Usenet Service
Lines: 44
Message-ID: <MPG.fe223cb1cc75732989717@news.virgin.net>
NNTP-Posting-Host: 194.168.122.60
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Exiting due to signal SIGSEGV
Stack Fault at eip=00001dc0
eax=00000000 ebx=0007f010 ecx=00000000 edx=00000019 esi=00000054 
edi=0003a648
ebp=0007a61c esp=fff99218 program=chunder.exe
cs: sel=00e7  base=10060000  limit=0008ffff
ds: sel=00ef  base=10060000  limit=0008ffff
es: sel=00ef  base=10060000  limit=0008ffff
fs: sel=00cf  base=00026340  limit=0000ffff
gs: sel=00ff  base=00000000  limit=ffffffff
ss: sel=00ef  base=10060000  limit=0008ffff

Call frame traceback EIPs:
  0x00001dc0


class chunder_class
{

public:

    struct pixel_struct
    {
        int x_speed, y_speed;
        int colour;
    };

    struct pixel_struct pixel[AREA_WIDTH][AREA_HEIGHT];

[rest of class and program...]


AREA_WIDTH = 640, AREA_HEIGHT = 480. I also get this error with 256x200, 
the lowest mode Allegro can do.

I read a bit in the FAQ which said that CWSDPMI couldn't handle it if 
there were a lot of small memory allocations needed. I don't know if this 
is what is causing the problem here. Memory allocation is not my 
speciality.


Andrew Gillett
http://argnet.fatal-design.com/

- Raw text -


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