Date: Sun, 7 Nov 1999 17:26:43 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Frederic Cazenave cc: djgpp AT delorie DOT com Subject: Re: memory In-Reply-To: <38235938.2C67@radar.mcgill.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Fri, 5 Nov 1999, Frederic Cazenave wrote: > What is the difference between dos memory and > linear memory? DOS memory is the part of memory below the 1MB mark. It is also known as the ``conventional memory''. As to ``linear memory'', I don't know what that is. Perhaps if you explain in what context did you see that term, I could try guessing what does that mean. > When I do a dpmi_get_free_memory_info and if > I malloc maximum_locked_page_allocation_in_pages is > there any dos_memory free or not ? The maximum locked page allocation usually doesn't include DOS memory (which is already locked). > What's the better way : > > to make a malloc or to use dpmi_allocate Use malloc, it is much easier. Allocation through DPMI is very complicated and should not be used unless you cannot do it with malloc.