www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/04/11:09:06

Xref: news2.mv.net comp.os.msdos.djgpp:4559
From: myskin AT inp DOT nsk DOT su (Vyacheslav O. Myskin)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How much free memory?
Date: Tue, 04 Jun 1996 03:37:56 GMT
Organization: BINP RAS
Lines: 25
Distribution: world
Message-ID: <4p0b2m$p1i@sky.inp.nsk.su>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 960602093754 DOT 19090J-100000 AT is>
Reply-To: myskin AT inp DOT nsk DOT su
NNTP-Posting-Host: csd-bsdi.inp.nsk.su
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:


>
> On Thu, 30 May 1996, Vyacheslav O. Myskin wrote:
>
> > I'd like to know the answer too. I've browsed the list of
> > memory-related functions and found nothing to get the amount of memory
> > available.
>
> What's wrong with `__dpmi_get_free_memory_information' and
> `__dpmi_get_memory_information'?

I asked this question because malloc failed to allocate the block
reported by __dpmi_get_free_memory_information.

> You should also know that DJGPP `malloc' rounds the size to a nearest
> power of 2, which might explain some failures.  But most DPMI servers

It really explains the values 2Mb and 16Mb that I got. Thanks.

Best wishes,
V. Myskin


- Raw text -


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