home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PASCAL / HEAPSW.ZIP / _HEAPSWP.DOC < prev    next >
Encoding:
Text File  |  1989-01-27  |  1.8 KB  |  48 lines

  1. HEAPSW.ARC  _HEAPSWP.TPU is a Turbo Pascal 5.0 Unit that
  2. allows your program to use the largest possible Heap space
  3. and still be able to EXEC external programs by saving an
  4. image of the Heap Space to disk and deallocating the Heap so
  5. it may be used by another program. On return to the program
  6. the Heap is restored to it's original state. Pascal programs
  7. can use memory to the top of 640K and still shell out to
  8. external programs.
  9.  
  10. The files in this Archive are:
  11.  
  12.   _HEAPSWP.TPU     Turbo Pasal 5.0 unit to manage the Heap
  13.                    Swap.
  14.  
  15.   _HEAPSWP.INT     Interface section describe the procedures
  16.                    and how they are used.
  17.  
  18.   _HEAPSWP.DOC     This document.
  19.  
  20.   HEAPDEMO.PAS     Source for the DEMO program which shows
  21.                    how the routine is used in an actual
  22.                    program.
  23.  
  24.   _DEMO.TPU        Unit used by the HeapDemo program.
  25.       
  26. This program came about as a result of using dynamic
  27. variables on the Heap to store lists of information for a
  28. real estate program. The lists could get very large and
  29. could take a long time to load. 
  30.  
  31. Since they needed the maximum Heap space it became
  32. impossible to run external programs or shell out to another
  33. COMMAND.COM to take a look at directories or format a disk.
  34.  
  35. This unit saves the entire Heap area to the disk and then
  36. Deallocates the memory for use by the program to be called.
  37. The standard TP5.0 EXEC procedure is then used to run the
  38. external program or a command.com.
  39.  
  40. When the user returns from the external program the Heap
  41. memory is reallocated and retrieved from the disk. The swap
  42. file is then erased.
  43.  
  44. About the only restrictions are that the disk have enough
  45. room on it for the Swap file. See the _HEAPSWP.INT interface
  46. file for details on how to use the routines.
  47.  
  48.