Boost logo

Boost Users :

Subject: Re: [Boost-users] Pointer "boundary checker" class or tools?
From: Brian Budge (brian.budge_at_[hidden])
Date: 2011-07-25 13:13:39


On Sat, Jul 23, 2011 at 10:56 AM, Hoe-Phuan Ng <avtinc2000_at_[hidden]> wrote:
> Hello:
>
> I a new to C++.  Have not use it yet.
> For a long time I was wondering if there is a way to automatically check if
> pointer
> has creep out of its "known area of access" in memory.
> Obviously such tool to check pointer would be really slow or too slow
> for release codes since we want to check pointer location at each pointer
> access, read or write.
>
> Is there such a tool or class to do Pointer "boundary checker" during debug?
>
> Thanks.
> HP
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

The best tool I know of to do this is to Valgrind. I think it only
runs on Unix-like platforms.
  Brian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net