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: NNTP-Posting-Host: dyn120ppp240.pacific.net.sg To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 27 Aug 1998 14:33:43 +0300 (IDT), Eli Zaretskii 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