[comp.sys.ibm.pc] MSC _memavl

steven@uicsgva.UUCP (01/19/88)

In MSC 5.0, small model, I'm using _memavl() to determine the amount of avail.
I use up to 80% of that space to do some reading/writing.  This works fine
the first time I try it (when reading data).  I then free() this space.
Later in the program, when writing, I repeat the same process to write.
_memavl() returns a reasonable result, but when I try to do a subsequent
malloc, it fails.  The documentation seems to lead you into believing that
you can malloc anything that _memavl() returns.

Any ideas?  I've run the heap check routines, and they don't see any
problems.

steven@polaris.csg.uiuc.edu
or
steven%polaris@uxc.cso.uiuc.edu