[comp.sys.amiga.programmer] Memory Management Program?

specter@disk.uucp (Byron Max Guernsey) (06/20/91)

Would it be possible to write a program to intercept and monitor calls
allocating memory and keep track of the programs making these calls. Then
when the program exits, if the memory is not freed correctly, to appropriately
free up the memory? Would this be practical? I know it would be nice to have
my amiga just for once not need to be rebooted due to some program not
properly unallocating its memory. Also, perhaps the program could monitor
memory an intercept other calls and do some error checking to prevent 
guru's? 

Is there anything in existance like this? Is it possible to intercept these
calls? 

Its unfortunate that while our unix system may run for weeks at a time, the
amiga will eventually crash after only 1 day. Is this a flaw in the machine
architecture and design? or is it just that the unix is more protected?

Byron

ben@epmooch.UUCP (Rev. Ben A. Mesander) (06/23/91)

In article <1991Jun20.020616.7802@disk.uucp> specter@disk.uucp (Byron Max Guernsey) writes:

[... stuff about memory tracking deleted ...]

>Its unfortunate that while our unix system may run for weeks at a time, the
>amiga will eventually crash after only 1 day. Is this a flaw in the machine
>architecture and design? or is it just that the unix is more protected?

The Amiga doesn't have to crash after one day. I refuse to run software
that crashes my system. If a program causes a GURU, I never use it again.
My system stays up for about a week at a time, but I eventually crash it
while debugging my own code (I'm not perfect yet... :-)

There's a lot of bad code out there; just refuse to use it.

>Byron

--
| ben@epmooch.UUCP   (Ben Mesander)       | "Cash is more important than |
| ben%servalan.UUCP@uokmax.ecn.uoknor.edu |  your mother." - Al Shugart, |
| !chinet!uokmax!servalan!epmooch!ben     |  CEO, Seagate Technologies   |