delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/12/19/18:45:11

From: Hans-Juergen DOT Taenzer AT t-online DOT de (Hans-Juergen Taenzer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How to get the amount of free memory
Date: 20 Dec 2002 00:28:00 +0100
Organization: T-Online
Lines: 19
Message-ID: <8cCD1i7lb3B@hans-juergen.taenzer.dialin.t-online.de>
References: <8c83mFDGb3B AT hans-juergen DOT taenzer DOT dialin DOT t-online DOT de>
<200212191819 DOT gBJIJUs14229 AT envy DOT delorie DOT com>
Mime-Version: 1.0
X-Trace: news.t-online.com 1040341246 05 20366 s3QOEO+ESGY2OT 021219 23:40:46
X-Complaints-To: abuse AT t-online DOT com
X-Sender: 0231313601-0001 AT t-dialin DOT net
X-Newsreader: CrossPoint [OpenXP/16] v3.40 RC3 @ 2804021900 R/C9933, via NNTP
X-Nntp-Client: UKAW v1.88g (62.227.191.241); (c) by 'www.gohel.de'
X-XP-Version: CrossPoint [OpenXP/16] v3.40 RC3 @ 2804021900 R/C9933
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"dj AT delorie DOT com (DJ Delorie) " wrote

 >> how do i get the amount of free real-memory (memory below 1 MB)
 >> from a running programm?

 > Call __dpmi_allocate_dos_memory() and ask for too much.  It will
 > return an error and tell you how much is actually available
 > (i.e. largest single allocation).

 > http://www.delorie.com/djgpp/doc/dpmi/api/310100.html
 > http://www.delorie.com/djgpp/doc/libc/libc_188.html

 >> Is __dpmi_allocate_dos_memory() the right approach?

 > Yup.

Thanks for the help.

Hans-Juergen

- Raw text -


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