delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/08/06:45:39

Date: Tue, 8 Jun 1999 11:58:33 +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: <v01540b01b3826f4b700d@[145.18.167.138]>
Message-ID: <Pine.SUN.3.91.990608115540.4197V-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:

> > What does go32-v2 print out?  And what OS and DPMI server do you use?
>
> The above memory value (the 4 MB) is taken from go32-v2

If you ran go32-v2 *before* invoking your program, it is possible that 
the programn's code, data and stack used up quite a lot of memory, and 
you really don't have 34KB left.

(4MB is quite low for running DJGPP programs anyway.)

Try invoking go32-v2 (via `system') at the beginning of `main', or near 
the place where you allocate those 34KB, and see what does it print then.

- Raw text -


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