Mail Archives: djgpp/1997/09/19/02:45:08
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.
- Raw text -