[comp.sys.amiga.tech] Memory tracing and protection code

jojo@astroatc.UUCP (Jon Wesener) (09/20/88)

    1st, I developed some routines for stopping me from crashing my
amy by freeing up memory twice and not freeing up memory allocated
by AllocMem.  These routines will stop memory from being freed up
that isn't allocated and the at the end of your program it will free
up memory that wasn't freed up.  But, when it comes across either of
these conditions it will print out the name of the file, function and
line number of the offending call or the file, func and line of an
alloc that wasn't freed up.

    I don't know if something like this has been posted already since it
was soooo easy to write and soooo useful that I'm not posting now in case
there might be something out which does it already or if no one wants it.

Anyone interested?
--j
-- 
... {seismo | harvard } ! {uwvax | cs.wisc.edu} ! astroatc!jojo
    "They weren't just any women...  They were women fresh from Hell, with
	wisps of devil-smoke curling behind their ears and unholy vapors hiding 
	in their tight leather dresses, looking for Mr. Right."