AminetAminet
Search:
84734 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/debug/memlib.lha

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric icon
No screenshot available
Short:Link library to debug memory problems
Author:"Doug Walker" walker at southpeak.com
Type:dev/debug
Architecture:m68k-amigaos
Date:1997-09-05
Requires:SAS/C v6.0+
Replaces:dev/debug/MemLib.lha
Download:dev/debug/memlib.lha - View contents
Readme:dev/debug/memlib.readme
Downloads:1737

This is a bug-fix release of Doug Walker's MemWatch Library.
He also granted permission for an Aminet upload. Thanks!
A short description taken from memlib.doc:

The MemWatch library adds lots of memory debugging features that you link
into your program.  The library does what it can to validate your memory
allocations and frees and to encourage any misuse of memory to result in
a reproducable crash rather than an erratic bug.

The MemWatch library compiles under SAS/C 6.0 and above.  If the memory
features are turned off, no additional code will be added to your
program.  If they are enabled, your code will call routines in the
MemWatch library automatically instead of malloc, calloc, realloc, free,
AllocMem, FreeMem, AllocVec, and FreeVec.  The MemWatch library also
replaces the standard C library versions of getcwd(), getenv(), and
strdup() since these functions call malloc().

The program-level memory debug routines are controlled by a
preprocessor symbol, MWDEBUG, and are #defined to nothing if the
symbol is not defined.

To link the program-level routines into your code, do the following:
[partially cutted, read memlib.doc for more info  --Walter]
1. Include the file "memwatch.h" into each file
2. #define the symbol MWDEBUG to 1 at some point before memwatch.h
   is included.
3. Recompile all files in your program and link with "memwatch.lib".


Contents of dev/debug/memlib.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[unknown]                  500     841  59.5% -lh5- 6c6d May  3  1996 Build.info
[unknown]                 1712    2632  65.0% -lh5- a81a May  3  1996 Debug
[unknown]                  303     459  66.0% -lh5- 6783 May  3  1996 Debug.info
[unknown]                  540     838  64.4% -lh5- c093 May  3  1996 Edit.info
[unknown]                14143   42084  33.6% -lh5- 1ee6 Aug 24  1997 example
[unknown]                  615    1303  47.2% -lh5- 8566 Dec 21  1996 example.c
[unknown]                  396     835  47.4% -lh5- 0fb0 Dec 12  1996 example.info
[unknown]                10994   10994 100.0% -lh0- 82db Dec 12  1996 Icons.lha
[unknown]                 4949   14073  35.2% -lh5- e985 May 16  1996 memlib.doc
[unknown]                  317     838  37.8% -lh5- 81a9 May  3  1996 memlib.doc.info
[unknown]                  838    1598  52.4% -lh5- ec77 Aug 30  1997 memlib.readme
[unknown]                 1837    5706  32.2% -lh5- 340d Dec 21  1996 mempriv.h
[unknown]                  369     844  43.7% -lh5- b9dd Dec 12  1996 memwatch.gst.info
[unknown]                 1382    4203  32.9% -lh5- bb62 Jan 20  1997 memwatch.h
[unknown]                10022   29768  33.7% -lh5- bb49 Aug 24  1997 memwatch.lib
[unknown]                 3579   11300  31.7% -lh5- 8e1e Jan  3  1997 mwcontrol.c
[unknown]                 3579   11313  31.6% -lh5- f52e Dec 12  1996 mwcontrol.c.orig
[unknown]                   77      77 100.0% -lh0- 7dc3 Dec 21  1996 mwflags.c
[unknown]                  179     272  65.8% -lh5- 513c Dec 21  1996 mwgetcwd.c
[unknown]                  157     249  63.1% -lh5- 2147 Dec 21  1996 mwgetenv.c
[unknown]                   77      77 100.0% -lh0- 6be9 Aug 24  1997 mwlogname.c
[unknown]                  626    1690  37.0% -lh5- 5cb0 Dec 21  1996 mwreport.c
[unknown]                  462    1124  41.1% -lh5- e25d Dec 21  1996 mwstrdup.c
[unknown]                   93     245  38.0% -lh5- 90e5 Dec 21  1996 precomp.c
[unknown]                  318     579  54.9% -lh5- 4939 May 16  1996 READ.ME
[unknown]                  321     493  65.1% -lh5- 4578 Aug 25  1997 READ.ME.Changes
[unknown]                  314     838  37.5% -lh5- 0239 May  3  1996 READ.ME.Changes.info
[unknown]                  314     838  37.5% -lh5- 0239 May  3  1996 READ.ME.info
[unknown]                  220     325  67.7% -lh5- 43fb Dec 21  1996 scoptions
[unknown]                  273     470  58.1% -lh5- fb0a May  3  1996 SCoptions.info
[unknown]                  409    1002  40.8% -lh5- c8c0 Aug 24  1997 smakefile
[unknown]                  203     838  24.2% -lh5- 1086 May  3  1996 smakefile.info
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        32 files   60118  148746  40.4%            Sep  4  1997
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>