www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/11/08/09:52:02

Date: Sun, 8 Nov 1998 16:51:54 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Chris Jones <dosuser AT hotmail DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Large malloc causes GPF
In-Reply-To: <7245e2$1lv$1@newsreader4.core.theplanet.net>
Message-ID: <Pine.SUN.3.91.981108165001.13710A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Sat, 7 Nov 1998, Chris Jones wrote:

> Whenever I use malloc to allocate a large block of memory, for example 2 Mb,
> subsequent calls to malloc (even for small amounts of memory) cause a
> General Protection Fault.

Please throw together a short test program which shows this problem and 
post the source here.  

2MB is not considered to be ``large'' by DJGPP standards; I have seen
programs that allocate considerably more than that and still can allocate
memory after that.

- Raw text -


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