home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 10
/
aminetcdnumber101996.iso
/
Aminet
/
dev
/
debug
/
findmemloss.readme
< prev
next >
Wrap
Text File
|
1996-01-05
|
1KB
|
31 lines
Short: Finds the source-line in which you lose memory! (needs cpr/SAS)
Author: h9525967@idefix.wu-wien.ac.at (Clemens Resanka)
Uploader: h9525967@idefix.wu-wien.ac.at (Clemens Resanka)
Type: dev/debug
If you have ever used Mungwall and Munglist to find out if your program loses
memory, you will probably know, that these only tell you the amount and sizes of
memory-packets that get lost. They cannot tell you exactly where in your program
you lose the memory.
Now it is possible to execute your program line by line in a debugger. If you
start Munglist after every line, you can find out in which source-line you
allocate memory, which you do not free afterwards.
And thats exactly what findmemloss.cpr does. It is an Arexx-script for cpr which
executes a function of you program line by line and then tells you in which line
you have allocated the memory, that gets lost.
But be careful: It is written in Arexx and it starts Munglist after every line.
Thus it is very slow... but it works!
============================= Archive contents =============================
Original Packed Ratio Date Time Name
-------- ------- ----- --------- -------- -------------
4588 1368 70.1% 26-Dec-95 23:19:46 findmemloss.cpr
4288 1767 58.7% 26-Dec-95 23:18:06 FindMemLoss.guide
-------- ------- ----- --------- --------
8876 3135 64.6% 29-Dec-95 12:46:06 2 files