| www.delorie.com/archives/browse.cgi | search |
| Date: | Thu, 19 Dec 2002 13:19:30 -0500 |
| Message-Id: | <200212191819.gBJIJUs14229@envy.delorie.com> |
| X-Authentication-Warning: | envy.delorie.com: dj set sender to dj AT delorie DOT com using -f |
| From: | DJ Delorie <dj AT delorie DOT com> |
| To: | djgpp AT delorie DOT com |
| In-reply-to: | <8c83mFDGb3B@hans-juergen.taenzer.dialin.t-online.de> |
| Subject: | Re: How to get the amount of free memory |
| References: | <8c83mFDGb3B AT hans-juergen DOT taenzer DOT dialin DOT t-online DOT de> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> 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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |