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
On Sat, Jul 23, 2011 at 10:56 AM, Hoe-Phuan Ng
wrote: 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. http://msdn.microsoft.com/en-us/library/ms220948%28v=vs.90%29.aspx -Steve