home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / amiga / programm / 17301 < prev    next >
Encoding:
Internet Message Format  |  1992-12-13  |  1.4 KB

  1. Path: sparky!uunet!cbmvax!cbmehq!cbmger!edohwg!heinz
  2. From: heinz@edohwg.adsp.sub.org (Heinz Wrobel)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Enforcer hits at 0000000
  5. Message-ID: <heinz.05es@edohwg.adsp.sub.org>
  6. Date: 10 Dec 92 19:28:42 GMT
  7. References: <1g56slINN1p2a@rs1.rrz.Uni-Koeln.DE>
  8. Organization: Edotronik GmbH
  9. Lines: 24
  10.  
  11. In article <1g56slINN1p2a@rs1.rrz.Uni-Koeln.DE> ad010@rrz.uni-koeln.de (Wilhelm Stiefelhagen) writes:
  12. >Hello Guys,
  13. >
  14. >Last week I tested my Amiga-Programms with Enforcer. I got a lot of
  15. >Enfercer hits of programs reading at adress 00000000. Some of the
  16. >programs are candidates for crashes, some are not.
  17. >Is this enforcer hit so common, and what is the reason?
  18.  
  19. You probably use pointer variables without checking for a NULL pointer
  20. beforehand. This is often not deadly but _REALLY_ ugly and should be fixed.
  21. Never ever use a pointer without checking it. This is _especially_
  22. important with return values of system functions like AllocMem() or
  23. OpenWindow(). Of course it apllies to everything else, too. If you don't
  24. check the value you don't know what actually happened.
  25.  
  26. >Willi
  27.  
  28. --
  29. Heinz Wrobel, Edotronik GmbH (ECG018)
  30. FAX +49 89 850 51 25 / TEL +49 89 850 25 20 (HOME!&VOICE, sometimes...)
  31. Path: cbmehq!cbmger!edohwg!heinz@cbmvax.commodore.com
  32. "It's good to have a mouse, it's faster if you can do without one..."
  33. "He who doesn't develop with an A2024 doesn't know about font independent
  34.  user interfaces..."
  35.