home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / msdos / programm / 8543 < prev    next >
Encoding:
Internet Message Format  |  1992-08-14  |  1.1 KB

  1. Path: sparky!uunet!olivea!mintaka.lcs.mit.edu!ai-lab!zurich.ai.mit.edu!pshuang
  2. From: pshuang@zurich.ai.mit.edu (Ping Huang)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: Far heap available (Microsoft C 7.0)
  5. Message-ID: <PSHUANG.92Aug14170715@freeside.ai.mit.edu>
  6. Date: 14 Aug 92 21:07:15 GMT
  7. Sender: news@ai.mit.edu
  8. Distribution: comp
  9. Organization: M.I.T. Artificial Intelligence Lab.
  10. Lines: 12
  11.  
  12. How do you find out how much free far heap you still have available? The
  13. only function which looks like it even comes close is _memavl(), but
  14. that only reports on the near heap. (I'm compiling for the large memory
  15. model and using third-party libraries, ergo mostly using far heap.) I've
  16. checked the documentation in QH, "Managing Memory in C" in the
  17. Programming Techniques manual, and the function reference manuals but to
  18. no avail. The non-orthogonality bothers me (there should be a _fmemavl).
  19.  
  20. --
  21. | Ping Huang (INTERNET: pshuang@martigny.ai.mit.edu) speaking for himself.
  22. | "One Thing to name them all, One Thing to define them,
  23. |  One Thing to place them in environments and bind them..."
  24.