I'm looking for memory debugger for Windows which will be able to debug uninitialized memory.
There is a code snippet (C++):
class Temp{
public:
Temp(double d) : m_double(d){};
double m_double;
float m_float;
};
int _tmain(int argc, _TCHAR* argv[])
{
double temp;
std::cout << temp <<std::endl;
Temp temp2(2.0);
std::cout << temp2.m_double <<std::endl;
std::cout << temp2.m_float <<std::endl;
int num1, num2;
num1 = num2 + 1;
return 0;
}
Desirable features:
- dynamic memory debugger, not static analysis tool
- GUI
- free
- integration with VS2005
- simple to use
Tried to use:
- Rational Purify v.7.0.0.0 build:6274
- Memory Validator v.5.12
- cppcheck - worked fine on given snippet but didn't helped on real big project
UPD: it seems that there is no way to find uninitialized memory in release mode with optimizations turned on with dynamic memory debugger. Going to try in debug mode.