Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!decwrl!shlump.dec.com!vaxwrk.dec.com From: granoff@vaxwrk.dec.com (Mark H. Granoff) Newsgroups: comp.lang.pascal Subject: Re: Memory usage under Turbo Pascal 5 Message-ID: <3405@shlump.dec.com> Date: 6 Jul 89 18:49:15 GMT Sender: news@shlump.dec.com Distribution: na Organization: Digital Equipment Corporation Lines: 22 In article <2662@blake.acs.washington.edu>, djo7613@blake.acs.washington.edu (Dick O'Connor) writes... >... How do you ... >check for memory in use (or, alternatively, free memory) at given >points in your programs? ... The Turbo Pascal built-in procedure MemAvail returns the number of free bytes as a Longint value. The built-in procedure MaxAvail returns a similar value, but is the total amount of memory in the system. MaxAvail - MemAvail is the total amount of memory your system and application (and TSRs, etc) are using. Its all in the manual... or in the editor, type MemAvail or MaxAvail and press Ctrl/F1 for some brief help. ---------------------------------------------------------------------- Mark H. Granoff | Software Services/Engineering VAXworks Digital Equipment Corporation | ARPAnet: granoff@vaxwrk.dec.com 129 Parker Street | EASYnet: VAXWRK::GRANOFF PKO2-1/M21 | Usenet : ...!decwrl!vaxwrk!granoff Maynard, MA 01754 | AT&T : (508) 493-4512 ---------------------------------------------------------------------- Disclaimer: Views expressed herein are my own and do not necessarily reflect those of my employer. ----------------------------------------------------------------------