Date: Tue, 8 Jun 1999 11:58:33 +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: > > 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.