bounds-checker

64 bit tools like BoundsChecker & Purify

For many years I have used two great tools BoundsChecker & Purify, but the developers of these applications have let me down, they no longer put effort into maintaining them or developing them. We have corporate accounts with both companies, and they both tell me that they have no intention of producing versions to support 64 bit applica...

GDI resource leak in DrawFrameControl

It seems that DrawFrameControl() creates Font and Brush objects, select them into dc, and doesn't delete them. (according to BoundsChecker messages). Does anyone faced such thing? ...

Can you start and stop boundschecker (DevPartner)?

I'm trying to use boundschecker to analyze a rather complex program. Running the program with boundschecker is almost too slow for it to be of any use since it takes me almost a day to run the program to the point in the code where I suspect the issue exists. Can anyone give me some ideas for how to inspect only certain parts of my sof...

Good memory profiling, leak and error detection for Windows

I'm currently looking for a good memory / leak detection tool for Windows. A few years ago, I used Numega's Boundschecker, which was VERY good. Right now it seems to have been sold to Compuware, which apparently sold it again to some other company. Trying to evaluate a demo of the current version has been so far very frustrating, in th...

How can I find the location of a "List index out of bounds" error in Delphi

In Delphi 2009, my program now produces a "List index out of bounds" error. It generates a popup box: I'm using the "Debug" Build Configuration that has all the Runtime error checking turned on. But this does not capture the error before it happens. Is there any simple way to locate the source of this error in my program without havi...

Technical name for a region of memory with a fixed pattern for bounds checking?

I want to know if there is some technical name for those regions of extra memory that are allocated for debugging purposes and filled with special patterns, so they can be checked at runtime to see if have been overwritten (and thus detecting a possible buffer overflow)... A fellow referred to them as "Canarios" (Canaries in Spanish), I...

How to make std::vector's operator[] compile doing bounds checking in DEBUG but not in RELEASE

I'm using Visual Studio 2008. I'm aware that std::vector has bounds checking with the at() function and has undefined behaviour if you try to access something using the operator [] incorrectly (out of range). I'm curious if it's possible to compile my program with the bounds checking. This way the operator[] would use the at() function...

Visual C++ debugger and BoundsChecker mystery

Hi everyone, Look at this screenshot of a Visual C++ debugger session: The execution point is now inside a virtual function. "mDb" is a reference to an object which is the member of that class. "mDb" has the type CDbBackend&. There is only one thread. The values in the red rectangles should be equal, ... but they're not. How can this...

Can array bounds checking be disabled in Visual Basic 2008

I know that this was an advanced compiler option in previous versions of Visual Studio, is there a way to disable array bounds checking in Visual Studio 2008? There's no option for it that I can see. ...

BoundsChecker shows incorrect memory leak message

Hello All, I'm using BoundsChecker9.1 with visual c++. I have a class class Sample{ public: vector<AnotherClass> x; }; When I run my program the BoundsChecker tool reports all push_back() calls such as S.x.push_back(AnotherClass()) as memory leak.. Wouldn't all the elements in vector x will always be deallocated when the Sample clas...

How do virtual destructors work?

Few hours back I was fiddling with a Memory Leak issue and it turned out that I really got some basic stuff about virtual destructors wrong! Let me put explain my class design. class Base { virtual push_elements() {} }; class Derived:public Base { vector<int> x; public: void push_elements(){ for(int i=0;i <5;i++) ...