On Sat, Nov 12, 2011 at 6:44 AM, Xuehan Xu <[email protected]> wrote:
>        I'm trying to find out whether there is some kind of dangling
> pointers in my program. For example, maybe there are two pointers in my
> program that point to the same address, and after one has been free'd, while
> the other one is still used to write to that memory location.
>        Can valgrind detect this kind of error?

Yes, probably.

> And how to use it to detect it?

Did you read http://valgrind.org/docs/manual/QuickStart.html yet?

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Valgrind-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to