Re: a missing feature in VC debugger



All this discussion has been centering around the error of p == null, when there is, of course, a zillion values that p could have which will cause the program to crash or fail, but only one value to make it work as designed.



Tony Young wrote:
Hi,

From time to time, when debugging why applications crash, we found out the cause is something similar to the following situation where p is actually a null pointer at run time:

p->func();
or
n = p->nData;

Finding this type of bugs are sometimes time consuming because applications may crash at a much later location. I don't know why VC6++ doesn't automatically detect such a situation and issue a warning. Does VC2005 has such feature? This should be a handy and easy-to-implement feature for the VC debugger. Does any other debugger support this type of feature? Your advice is appreciated.

JD
.



Relevant Pages

  • Re: a missing feature in VC debugger
    ... Tony Young wrote: ... From time to time, when debugging why applications crash, we found out ... VC2005 has such feature? ... Does any other debugger support this type ...
    (microsoft.public.vc.mfc)
  • Re: a missing feature in VC debugger
    ... All lthe more reason for tossing ASSERT statements into it! ... you are assuming it is the role of the debugger to detect this (which it is ... But in many situations the feature I talked about is still ... From time to time, when debugging why applications crash, we found out ...
    (microsoft.public.vc.mfc)
  • a missing feature in VC debugger
    ... From time to time, when debugging why applications crash, we found out the cause is something similar to the following situation where p is actually a null pointer at run time: ... This should be a handy and easy-to-implement feature for the VC debugger. ... Your advice is appreciated. ...
    (microsoft.public.vc.mfc)
  • Re: a missing feature in VC debugger
    ... From time to time, when debugging why applications crash, we found out the ... VC2005 has such feature? ... feature for the VC debugger. ... What could be happening is an exception is thrown, ...
    (microsoft.public.vc.mfc)
  • Re: MyString Class
    ... > I compiled your program and run it under the debugger. ... > The first crash happens in ... ... > memory is flawed. ... First bug fixed. ...
    (comp.lang.cpp)