What can cause VTable pointer to be 0xffffdffffddd in Win32 debug build?

后端 未结 4 1508
遇见更好的自我
遇见更好的自我 2021-01-11 15:40

I am debugging a defect and have narrowed it down to the vtable pointer for an object being 0xffffdffffddd. This answer indicates that Win32 debug builds will gene

4条回答
  •  無奈伤痛
    2021-01-11 16:15

    If you start the program, put a break point at where you create the object. Then add a memory break point. This will fire if you overwrite or delete the memory. Well, or change it in any way.

    Your object will look correct if the memory isn't overwritten, but your vtable may not be depending on compiler specifics.

    It could also be a size problem if you are using inheritance. If you are using any kind of bucket memory or storing objects by anything but the pointer.

提交回复
热议问题