home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / swaprv12.zip / SWAPPER.TXT < prev   
Text File  |  1989-01-09  |  6KB  |  133 lines

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