home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / cplus / 12330 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.2 KB

  1. Path: sparky!uunet!gatech!rutgers!fdurt1.fdu.edu!wisdom.bubble.org!chsdip!chsdip!groo
  2. From: groo@chsdip.wisdom.bubble.org (Bill Squier)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Finding runtime Null ptr assignments
  5. Message-ID: <SzZur*eZ0@chsdip.wisdom.bubble.org>
  6. Date: 11 Aug 92 18:41:42 GMT
  7. References: <BsJI3x.Lqp@news.cso.uiuc.edu>
  8. Organization: Dragonsoft Development
  9. Lines: 18
  10. X-Newsreader: Arn V1.00 beta rel2
  11.  
  12. In article <BsJI3x.Lqp@news.cso.uiuc.edu>, Scott Brown writes:
  13.  
  14. > Using Borland's 3.0 compiler I have been getting a 
  15. > null pointer assignment error at run-time with a program
  16. > I'm working on.  Any hints as to how I might find out
  17. > why this is? [...]
  18.  
  19. The easiest way to track down NULL pointer assignments in
  20. Turbo Debugger (and any debugger that supports memory-watch
  21. breakpoints) is to set a break point that watches location 0 as a
  22. long.  As soon as one of those bytes is changed, the debugger will
  23. position you on the statement that caused the problem.
  24.  
  25. With TD, the appropriate command is in the _W_atch menu (I believe).
  26.  
  27. ----------------------------------------------------------------------
  28. "Stimpy, sometimes your wealth of ignorance astounds me." -ren hoek
  29. Bill Squier (groo@chsdip.wisdom.bubble.org) MetaMail capable
  30.