delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/09/06:57:23

Date: Wed, 9 Jun 1999 11:21:24 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Dlanor Blytkerchan <dlanor AT dds DOT nl>
cc: djgpp AT delorie DOT com
Subject: Re: malloc() problem
In-Reply-To: <l03130301b38313f880cf@[145.98.116.203]>
Message-ID: <Pine.SUN.3.91.990609112030.11862C-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 8 Jun 1999, Dlanor Blytkerchan wrote:

> >> When I started the program it died with "Load error: no
> >> DPMI memory".
> >
> >This is one more evidence that your system runs out of memory somehow.
> >This message is printed when the stub loader cannot allocate enough
> >memory to load the code and static data of your program.
>
> .. which it probably tries to do with malloc()

No, the startup code uses direct DPMI calls to get the memory at that
stage, since the program's segments are not yet set up, and so calling
`malloc' would crash immediately.

- Raw text -


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