Date: Wed, 9 Jun 1999 11:21:24 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Dlanor Blytkerchan cc: djgpp AT delorie DOT com Subject: Re: malloc() problem In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk 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.