home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!wupost!waikato.ac.nz!ldo
- From: ldo@waikato.ac.nz (Lawrence D'Oliveiro, Waikato University)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: EBBE and the like (was Re: Whip me, beat me...)
- Message-ID: <1992Nov20.114230.12351@waikato.ac.nz>
- Date: 20 Nov 92 11:42:30 +1300
- References: <1992Nov19.011329.23589@bnr.ca> <1992Nov19.180531.4442@netcom.com>
- Organization: University of Waikato, Hamilton, New Zealand
- Lines: 22
-
- In article <1992Nov19.180531.4442@netcom.com>, creiman@netcom.com writes
- (among other things):
- >
- > 5) Another good technique is to extend the Xap handles concept one
- > step further. Xap handles only stuffs a block with junk after you
- > free it up. This doesn't catch uninitialized data structures. You
- > can modify your program's memory allocator to stuff new blocks with
- > bus error values when first allocated. This usualy catches lots of
- > bugs for me. I think Jasik's will do this for you.
-
- I also think that a patch that fills a memory block with bus error values on
- allocation is preferable to one that does the same thing when the block is
- freed.
-
- At least it allows you to free the memory block containing the routine currently
- executing, and then return to the caller, without crashing.
-
- Lawrence D'Oliveiro fone: +64-7-856-2889
- Computer Services Dept fax: +64-7-838-4066
- University of Waikato electric mail: ldo@waikato.ac.nz
- Hamilton, New Zealand 37^ 47' 26" S, 175^ 19' 7" E, GMT+13:00
- History's like a mole; it burrows away unnoticed. -- Andrei Sakharov
-