home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sys / mac / programm / 18671 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.6 KB

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