home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / sysutil / swaprv12.lzh / SWAPPER.TXT < prev   
Encoding:
Text File  |  1989-01-10  |  5.8 KB  |  133 lines

  1.  
  2.                                SWAPPER v1.2
  3.            (C) Copyright 1988 GWBeckwith.  All rights reserved.
  4.                     26 Selfridge Rd, Bedford, MA 01730
  5.  
  6.                      SWAPPER frees memory for programs
  7.                    executed with the dBase 'RUN' command
  8.  
  9. SWAPPER and SWAP2 are user supported products.  They are not public domain,
  10. and they are not free software.  You are granted a limited license to use
  11. these products on a trial basis.  If you wish to continue using these
  12. products after you have evaluated them, you must register by sending:  $10
  13. for registration (no disk) or $20 for registration and the latest version
  14. on disk.
  15.  
  16. SWAPPER is a memory management utility that allows any program, regardless
  17. of size, to be 'RUN' inside any dBase application.  It is compatible with
  18. both the dBase III+ interpreter and the Clipper compiler.
  19.  
  20. When SWAPPER is activated, it will unload a dBase application program,
  21. execute ANY other program as if it were a subroutine call, and then return
  22. to the original dBase program and execute the very next instruction.
  23. SWAPPER frees up memory so that the programs executed with the dBase 'RUN'
  24. command can use all of your available memory.
  25.  
  26. The dBase 'RUN' command provides a convient way to execute another program
  27. from within a dBase program, much like a subroutine call.  As long as you
  28. have enough memory to load the interpreter and the extra program
  29. simultaneously everything works fine.  Dbase III+ will run in 256k, and
  30. lots of word processors will also run in 256k.  So if you've got 640k of
  31. memory and want to call your word processor from a dBase application,
  32. you're all set.  But what happens when you want to call a program that
  33. needs more than 256k, or when you compile the same application with
  34. Clipper?   Does the phrase: "Unable to load WORD: insufficient memory"
  35. sound familiar?
  36.  
  37. SWAPPER was designed specifically to solve the "insufficient memory"
  38. problems we encountered when our word processor wouldn't work after we
  39. compiled our dBase applications.  As it turns out, SWAPPER works equally
  40. well with the dBase III+ interpreter, and it doesn't care what kind of
  41. program is run.  It will even run memory hungry Windows applications like
  42. Excel from within a compiled dBase application!
  43.  
  44. SWAPPER works in conjunction with another program called SWAP2.  You start
  45. your database application by using SWAPPER, and insert "SWAP2" into your
  46. dBase RUN statement.  For example, to start a dBase III+ program, at the
  47. DOS prompt you would type in: "SWAPPER DBASE PROGRAM".
  48.  
  49. In your dBase source code file PROGRAM.PRG you code "RUN SWAP2 WORD"
  50. instead of "RUN WORD".
  51.  
  52. That's all you have to do.  SWAPPER will find the application program you
  53. specified and execute it.  Any command line parameters you type in after
  54. the application program name will be passed along to the program.
  55.  
  56. When your program executes the 'RUN' statement, SWAP2 runs and almost
  57. immediately transfers control back to SWAPPER.  SWAPPER unloads the entire
  58. dBase application by saving all of the memory it was using in a temporary
  59. file on disk.  SWAPPER then finds the second program and executes it.  By
  60. completely unloading the original dBase program, SWAPPER gives the second
  61. program all of your available memory to run in!
  62.  
  63. When the second program terminates, SWAPPER gets control back again.  It
  64. restores the first program from the disk file, and restarts it exactly
  65. where it left off.
  66.  
  67. The syntax of the SWAPPER command line is as follows:
  68.  
  69.  
  70. swapper [/C][d:][directory] [/F=swapfile] filename [arguments]
  71.  
  72. "Filename" is the file specification for your initial database application
  73. program.  It can be a full DOS file name including drive and/or path
  74. specifications.  If a file name with path is specified, SWAPPER searches
  75. for the file only in the specified directory.  If a drive and file name are
  76. specified without a path, SWAPPER will search only the logged directory on
  77. the specified drive.  If just a filename is specified, SWAPPER will search
  78. the present directory on the currently logged drive and then search all
  79. directories listed in the DOS PATH environment variable.
  80.  
  81. The "arguments" are the command line parameters needed by your application
  82. program.  They are passed along to your program just as they are.
  83.  
  84. Including the switch /C  will cause SWAPPER to change to whatever directory
  85. the executable file is in before starting the program.
  86.  
  87. The switch /F=swapfile allows you to specify the filename that SWAPPER will
  88. use to save the memory image of the first application program.  If you
  89. include a drive specification in the file name, this option allows you to
  90. use a RAM disk as the storage media for SWAPPER's temporary file.
  91.  
  92. If you intend to use a RAM disk to hold the swap file, remember that the
  93. RAM disk has to have enough free space to hold a copy of the memory image
  94. used by your application program.  The amount of storage space required
  95. will vary for different applications; for some of the compiled dBase
  96. applications we have developed, 300k to 400k bytes of disk space are
  97. required for the swap file.  We strongly suggest that if you plan to use
  98. this option, your RAM disk should use expanded or extended memory.
  99.  
  100. The syntax for SWAP2 is shown below.  Note that SWAP2 must be executed
  101. using the dBase 'RUN' command.
  102.  
  103. RUN swap2 [/C][d:][directory] filename [arguments]
  104.  
  105. The syntax of SWAP2 is nearly identical to the syntax of SWAPPER.  The same
  106. rules for locating the second program file to execute are applied by SWAP2.
  107.  
  108. The /C switch will cause SWAPPER to set the default directory to the
  109. directory containing the second program file before it is executed.  This
  110. option is useful for swapping to programs like Wordstar that have to be
  111. started in the directory where the program files are located.
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.