On Wednesday January 03 2001, Benny Pedersen said to Neil Williams:
>>>> BTW, V's memory cache installs a lowmem handler which means if the
>>> what is the defination of "low memory" ?
>> 0.
BP> i will prefer to have more then 25% free anytime !
BP> so if a1200 with 2MB chip ram, should have 25%free it will be around
BP> 500kb for the os to work :)
That's not the job of the lowmem handler - it's designed only to help when an
allocation fails. It's at the same level as the system (ramlib) that frees
unused libraries. Infact - ramlib has a low mem handler at priority 0..
I suppose you could hack the OS to call low mem routines if an AllocMem(
val+(TotalMem(allocflags)*0.25)) fails, but then that 25% of memory is likely
to never be used by anything.
---
Neil Williams, nOw2? mailto:[EMAIL PROTECTED] ICQ:18223711
http://www.aio.co.uk http://www.tkgbbs.freeserve.co.uk fiydoh 2:442/107
Zeus Developments, comms s/w: http://www.bleach.demon.co.uk/zeus/
_____________________________________________________________________
Voyager Mailing List - http://v3.vapor.com/
Voyager FAQ....: http://faq.vapor.com/voyager/
Listserver Help: mailto:[EMAIL PROTECTED]?Subject=HELP
Unsubscribe....: mailto:[EMAIL PROTECTED]?Subject=UNSUBSCRIBE