home *** CD-ROM | disk | FTP | other *** search
- ------------------------------ MEMUTILS ---------------------------------
-
- Shearer Cooper Computer Company
- Version 1.1 Jan. 22, 1991
-
- This is a collection of utilities that can greatly assist in debugging and
- monitoring memory usage and memory problems in programs.
-
-
- ------------------------------ USEMEM -------------------------------------
-
- Uses up the specified amount of memory. This is handy for checking how your
- program will run on machines with less memory. You can easily reduce the
- amount of memory used to 0 (remove the TSR from memory) or adjust it at
- any time.
-
- Usage :
- USEMEM Say help.
- USEMEM 0 Remove USEMEM from memory.
- USEMEM ? Display USEMEM status.
- USEMEM m Use up m kilobytes of memory.
- USEMEM -m Subtract m from kilobytes currently used
- USEMEM +m Add m to kilobytes currently used.
- Included mainly for completeness ; chances are good
- that due to DOS's memory scheme you won't be able
- to increase the memory used but must instead set to
- 0 and then re-set to your desired value.
- USEMEM !m Use everything _except_ m kilobytes of memory.
-
- This product uses the TesSeRact(TM) Ram-Resident Library and supports
- the TesSeRact Standard for Ram-Resident Program Communication. For
- information about TesSeRact, contact the TesSeRact Development Team
- at:
-
- TesSeRact Development Team
- c/o Chip Rabinowitz
- 2084 Woodlawn Avenue
- Glenside, PA 19038
- 1-215-884-3373
-
- Compuserve: 70731,20
- MCIMAIL: 315-5415
-
- This MCIMAIL Account has been provided to the TesSeRact Development
- Team by Borland International, Inc. The TesSeRact Development Team is
- in no way associated with Borland International, Inc. TesSeRact is a
- trademark of the TesSeRact Development Team.
-
-
- ------------------------------ FILLMEM ------------------------------------
-
- Fills memory with a specified value and then (optionally) runs your program.
- Easy way to check if your program is referencing uninitialized memory.
-
- Usage : FILLMEM value [program [arguments] ]
- Value is an integer (16-bit) value.
- Value be specified in hexadecimal by starting the value with an x
-
-
- ------------------------------ MEMTEST ------------------------------------
-
- This program runs through all of your standard DOS (640K) memory and byte
- by byte reads the current value then writes 0FFh, 05Ah, and 0A5h to the
- memory location, verifying each write, and then restores and verifies the
- original value. Each byte test is performed with interrupts disabled.
-
-
- ------------------------------ WATCHMEM -----------------------------------
-
- Usage : WATCHMEM [option(s)] [action(s)]
-
- WATCHMEM is a TSR that watches and remembers all requests for
- memory (allocation, modification, and release) as well as requests
- for execution and termination. This list can be then retrieved and output.
-
- To load WATCHMEM into memory and activate it, do one of these three things :
- Enter no actions at all. WATCHMEM will have a default buffer size of
- 100 requests.
- Enter the action 'y' (without the quotes). Same as entering no action
- at all.
- Enter the # of requests to remember. Each request remembered takes
- (on the average) 12 bytes. Number must be between 100 and 2500.
-
- The option letter 'e' (without the quotes) may be specified during
- loading to indicate that environment space memory should be released.
- This option reduces the amount of memory used by WATCHMEM but means
- that programs like PCMAP and MAPMEM will not be able to determine
- the name of this TSR.
-
- Actions which can be specified together are :
- n Remove WATCHMEM from memory completely
- c Clear WATCHMEM memory allocation history
- l List remembered requests. The option letter 't' may be
- specified, in which case the time when each request was made
- will also be output.
- s Suspend WATCHMEM operation (do not remember any
- more requests until re-activated)
- a Re-activate WATCHMEM operation (see s option)
- ? Display WATCHMEM status (suspended or active)
- In addition, the DOS return code is set as follows :
- 0 if active
- 1 if suspended
- 2 if not loaded
-
- With any option you may specify the option 'q' (without the quotes) to
- indicate that only error messages should be printed.
-
- Multiple actions may be specified on a single command line, with the
- following restrictions :
- 1. The action 'y', if specified, must be the last action on the command line.
- 2. To load WATCHMEM, the 'y' action must be specified. Specifying a buffer
- size is not enough if other actions are also specified.
-
- For WATCHMEM to operate, it must be LOADED and ACTIVE. LOADED means that
- WATCHMEM has been read off disk and is residing in the memory of the
- computer. ACTIVE means that WATCHMEM has been told to remember any
- memory allocation requests that occur. SUSPENDED means that WATCHMEM is
- LOADED, but has been told to ignore any memory allocation requests that
- occur. Neither ACTIVE nor SUSPENDED have any meaning if WATCHMEM has
- not been LOADED.
-
- By including WATCHMEM.OBJ in your file, you can send comments into the
- WATCHMEM buffer which will be output with the memory requests in correct
- time sequence.
-
- IMPORTANT CAVEAT :
- Microsoft and other C compilers buffer memory requests by allocating large
- blocks from DOS and responding to program requests for memory by keeping an
- internal linked list of blocks. WATCHMEM can only see the memory allocations
- that are handled by DOS itself. What you will see when running WATCHMEM on
- a program using Microsoft C (for example) is large blocks (usually multiples
- of 8K) being allocated and never de-allocated until the program terminates.
- To see your individual blocks being allocated and freed, use _dos_allocmem
- (or the equivalent call for your compiler) or direct DOS interrupt calls
- (int 0x21, functions 0x48, 0x49, and 0x4A).
-
- This product supports the TesSeRact(TM) Standard for Ram-Resident
- Program Communication. For information about TesSeRact, contact the
- TesSeRact Development Team at the above address.
-
-
- ------------------------------ SHAREWARE ----------------------------------
-
- These utilities are shareware - user-supported software. If you use and like
- these utilities, please register them by sending $10 to :
-
- SC3
- 14 Lena Lane
- Milford, MA 01757
-
- Enclose your name, company name (if applicable), address, and CompuServe
- ID (if applicable).
-
- Registration gets you the following items :
- 1. The satisfaction of knowing you did the right thing
- 2. Our undying gratitude
- 3. Automatic update notification
-
- With your registration, specify if you want your update notifications by
- US Mail or CompuServe.
-
- Site licenses are available at $10 for the first copy and $5 for each
- additional copy.
-
- You may contact us through the US mail at the above address, or on CompuServe
- through Chris Shearer Cooper 76666,3026.
-
- ------------------------------ REVISION HISTORY ---------------------------
-
- v1.1 Jan. 22, 1991
- WATCHMEM : Fixed incorrect status descriptions, upgraded help
-
- v1.0 Jan. 9, 1991
- Initial release, all programs
-
- ------------------------------ LEGAL STUFF --------------------------------
-
- We have done our best to create a set of bug-free programs (we even use
- them ourselves for program development), and we will of course respond
- reasonably quickly to bug reports and improvement suggestions, but in this
- lawsuit-happy age we are forced to add :
-
- We will not be held responsible for any loss of income or livelihood, damage
- to property or electronic data, however caused, as the result of using any
- of the programs in this package. The Shearer Cooper Computer Company
- disclaims all warranties, expressed or implied, including without limitation,
- any warranties of merchantability and of fitness for any purpose. We assume
- no liability for damages, direct or consequential, which may result from the
- use of any of these programs. You load these programs into your computer
- memory entirely at your own risk.
-
- These programs are _not_ released into the public domain - they remain
- owned fully by the Shearer Cooper Computer Company and may not be distributed
- except as a complete package including this document file. You may not
- charge a fee for the programs in this package except for nominal shipping
- or handling fees. Within those limitations, feel free to distribute this
- package to other bulletin boards, coworkers, etc.
-
-