Senin, 14 Februari 2011

Displaying vtable when debugging

Due to some limitations the virtual table of an object is not shown by default in the debugger. In some cases only the entries from the base class is shown.class Base{    virtual void a(); };class Derived : public Base{    virtual void b();};Base* ptr = new Derived();which in a watch window givesptr->__vfptr 0x004420f8 const Derived::`vftable' [0x0] 0x00415ed3 Base::a(void) You can look at the

Tidak ada komentar:

Posting Komentar