Date: Wed, 7 Feb 2001 14:06:17 +0200 (IST) From: Eli Zaretskii 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: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Precedence: bulk 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.