home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / amiga / programm / 11473 < prev    next >
Encoding:
Text File  |  1992-07-22  |  1.6 KB  |  43 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: sparky!uunet!stanford.edu!rock!sas!mozart.unx.sas.com!jamie
  3. From: jamie@cdevil.unx.sas.com (James Cooper)
  4. Subject: Re: Segmentation faults needed
  5. Originator: jamie@cdevil.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <BrsMBB.HID@unx.sas.com>
  8. Date: Wed, 22 Jul 1992 13:47:35 GMT
  9. References: <1992Jul21.190824.7598@emr1.emr.ca> <1992Jul21.222212.29270@cs.rose-hulman.edu>
  10. Nntp-Posting-Host: cdevil.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 29
  13.  
  14.  
  15. In article <1992Jul21.222212.29270@cs.rose-hulman.edu>, catapcnl@NeXTwork.Rose-Hulman.Edu (Chris Lawrence) writes:
  16. >Distribution: World
  17. >
  18. >In article <1992Jul21.190824.7598@emr1.emr.ca> dostie@ccrs.emr.ca (M Dostie)  
  19. >writes:
  20. >:This may be hopeful thinking but is there some utility which will
  21. >:prevent C programs from crashing the machine and rebooting it and
  22. >:instead print something like Segmentation fault and return to the
  23. >:console??
  24. >:
  25. >:      Mark Dostie
  26. >:      mdostie@ccrs.emr.ca
  27. >
  28. >If you use SAS/C, try using the catch.o startup code.  This will trap many  
  29. >(though not all) exceptions.  As for segmentation faults, that sort of stuff  
  30. >requires protected memory support or a program like MemWatch.
  31.  
  32. catch.o will catch anything that happens within your program, but it
  33. won't catch things like sending bad packet info to a DOS or Exec call,
  34. etc.
  35.  
  36. -- 
  37. ---------------
  38. Jim Cooper
  39. (jamie@unx.sas.com)                             bix: jcooper
  40.  
  41. Any opinions expressed herein are mine (Mine, all mine!  Ha, ha, ha!),
  42. and not necessarily those of my employer.
  43.