delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/30/23:32:01

From: fesenko AT pacific DOT net DOT sg (Victor)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Remaining memory under OS/2 question
Date: Mon, 31 Aug 1998 18:15:27 GMT
Organization: Subscriber of Pacific Internet, Singapore
Lines: 34
Message-ID: <35eae674.2404551@news>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 980827143314 DOT 6326X-100000 AT is>
NNTP-Posting-Host: dyn120ppp240.pacific.net.sg
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Thu, 27 Aug 1998 14:33:43 +0300 (IDT), Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> wrote:

>
>On 26 Aug 1998 sl AT psycode DOT com DOT REMOVE_THIS wrote:
>
>> > I'm using _go32_dpmi_remaining_physical_memory() function to find the
>> > remaining memory and I fing it very useful. But I can't use this
>> > function if I'm running my program under OS/2 dos box., it just shows
>> > some very big value and doesn't change in the course of the program.
>> > Anyone knows how to check available memory under OS/2?
>> > I'd appreciate a pointer to a place where I can find out more about
>> > memory management in the dos box of OS/2 (if there is one).
>> 
>> 	I have the same problem =) HELP!
>
>I don't have access to OS/2, so I cannot help you without some effort
>on your part.
>
>First, I'd like to see what do other DPMI functions which report
>memory return.  And second, please tell what ``very big value'' is
>returned by `_go32_dpmi_remaining_physical_memory'.


_go32_dpmi_remaining_physical_memory() returns 4,294,963,200 bytes.
As for other functions the trouble is that I'm not sure what the
values in the structures returned by these functions should be.
I tried the function __dpmi_get_free_memory_information() and the
value of largest_available_free_block_in_bytes changes in the course
of the program, but I'm not sure how to interpret it.
The value of total_number_of_free_pages doesn't change.

Regards. Victor.
fesenko AT pacific DOT net DOT sg

- Raw text -


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