finding free memory left

new topic     » topic index » view thread      » older message » newer message

does anyone have a routine, that can be used
*within* euphoria that will tell you, on any
system (including ones that have over 16M and
64M), how much conventional, EMS and XMS memory
you have remaining, at any given moment, on
your system?

i looked thru "the" interrupt list (browns)
and it seemed like it was going to be a
really bad asm hack to do this.  there
are apparently several interrupts that
need to be called to determine free memory
depending on what kind of system you have.
in fact, it seemed far too overly complicated
to do something that should be rather easy.

and if you're wondering, i already tried the
system("mem",2) route and what happens is
that euphoria swaps all of itself out,
including your allocated memory holding
data, until it's down to like 24K of
conventional memory (which is NOT a
bad thing mind you... purty good in fact,
could help those guys making a dosshell
outta euphoria) and as such it does not give
me an accurate account of how much memory
is remaining in my system before euphoria
will begin swapping...
and besides, i think it would be a handy
addition to our toolboxes to have that laying
around for when we need it... surprised
euphoria doesn't already have that as
a builtin or an include...
mebbe someone could write a library that holds
all those nifty utilities... gets the information
from the system, like all the info reported by
chkdsk, mem, mem/c, bios strings, cmos settings,
but have it all running from within euphoria,
so its accurate at runtime... mebbe call it
system.e.  has this been done already? if so,
where might i find it???

thanks in advance--Hawke'

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu