Message-Id: <199709190643.QAA17217@rabble.uow.edu.au> Subject: Where is my physical memory hiding? To: djgpp AT delorie DOT com (DJGPP) Date: Fri, 19 Sep 1997 16:43:36 +1000 (EST) From: Brett Porter MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk Hi there DJGPP lovers, To start off with, I have 8Mb Physical RAM and run on a multi-config Windows 95 (ie, I don't start teh GUI). I have smartdrv installed (2Mb), EMM386 NOEMS and CWSDPMI to run DJGPP programs. Now, the question... I have a function that reports free physical RAM (cut and pasted from info using RHIDE... it is in the go32_mem_info block section). This reports to me that I have over 7000000 bytes free (it changes each time I run it, depending on various things). But when I try to allocate 62 blocks (each 64000 bytes), I run out of memory. Shouldn't there be enough, and if not, shouldn't it start paging to disk? I have 19Mb free on my Hd... The actual sequence of calls is: (it's to load each frame of a FLI into a seperate buffer)... BTW the size of the FLI file is < 40Kb * allocate a buffer for this frame (taken from frame_header.Size) * allocate 64000 bytes and store the frame * free the first buffer ... and do this 62 times. Any ideas why I am running out of memory? Thanks in advance BRett -- "Give me ambiguity or give me something else" -- Brett Porter blp01 AT uow DOT edu DOT au http://www.geocities.com/CollegePark/Union/3596 Humour, Programming, and more.