Hello everyone,
I am using Visual Studio 2005 and I am wondering whether we could debug into the global delete operator?
I have tried to debug by setting a break point to delete statement, but I could only debug into destructor.
My understanding is, when we call delete, the internal operations are,
1. invoking destructor;
2. invoking global delete operator.
Is my understanding correct?
For example,
Code:class Foo { int i; public: Foo() { i = 100; } ~Foo() { i = 0; } }; int main (int argc, char** argv) { Foo* f = new Foo(); delete f; // can not debug inside return 0; }
thanks in advance,
George