home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / caway349.zip / BIN / WATSWAP.ZIP / README.TXT < prev    next >
Text File  |  1995-08-18  |  1KB  |  30 lines

  1. CWSWAP is a linkable function contained in CWSWAPR.OBJ
  2. (register-based calling convention) and CWSWAPS.OBJ (stack-based
  3. calling convention) which offers conventional memory swap
  4. functionality.  All but 12-20K of the conventional memory image
  5. is swapped out to disk when the routine is called, temporarily
  6. freed, and then reallocated and reloaded upon return from the
  7. CWSWAP routine.
  8.  
  9. This routine is useful for two situations:  First, it is ideal
  10. for situations where spawn()'ing does not leave enough a large
  11. enough conventional memory footprint for real mode applications
  12. and you need the largest possible amount of free conventional
  13. memory.
  14.  
  15. Second, CWSWAP will free up conventional memory even if extended
  16. memory has been exhausted and the DOS extender is using
  17. conventional memory to supply memory allocation requests or to
  18. load part of the program image.
  19.  
  20. Do NOT use CWSWAP to load a TSR application, as the leftover TSR
  21. will cause major problems due to the conventional memory
  22. allocation image changing and then being overwritten by the
  23. CWSWAP restore action.
  24.  
  25. CWSWAP will only work in conjunction with the CauseWay DOS
  26. extender.
  27.  
  28. See SWAPDEMO.C for the proper prototypes and use of the CWSWAP
  29. function.  DEMO.BAT demonstrates use of the CWSWAPper routines.
  30.