Boost logo

Boost Users :

Subject: Re: [Boost-users] Pointer "boundary checker" class or tools?
From: Steve Dispensa (dispensa_at_[hidden])
Date: 2011-07-25 13:23:35

> 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?

On Windows, there is pageheap, which can be activated as a part of App Verifier. App Verifier has lots of useful runtime checking, beyond just pageheap. You generally have to run the code in the debugger (I use WinDbg), and it'll break in whenever something it's watching for happens.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at