delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/02/07/07:40:30

Date: Wed, 7 Feb 2001 14:06:17 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: GP fault on a new -- why?
In-Reply-To: <95pqqk$t55$1@nnrp1.deja.com>
Message-ID: <Pine.SUN.3.91.1010207140437.4599J-100000@is>
MIME-Version: 1.0
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

On Tue, 6 Feb 2001 dcasale AT my-deja DOT com wrote:

> Me again.  I've broken my compression proggy again by trying to add
> another feature.  This time, I've managed to get it to give me
> a "General Protection Fault" when I try to do a new.  This is under
> straight DOS, by the way.

Crashes inside new or malloc/free usually mean that you corrupt the heap 
by overwriting allocated buffers.

> I've tried making the stack bigger (a-la FAQ 15.9).  I've tried
> increasing the CWSDPMI heap size (a-la FAQ 15.4).  Neither seems to
> have helped.

They shouldn't have helped.  Your problem most probably has nothing to do 
with the program's stack or the amount of available memory.

- Raw text -


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