Skip to content

Debugging D3D

Connor Fitzgerald edited this page Oct 29, 2020 · 3 revisions

Assorted tips for debugging D3D problems.

COM

  • The refcount of a COM object is 9 32 bit words behind the pointer's destination and is 4 bytes. As such, subtract 36 from the pointer's address to get a pointer to that object's refcount. This allows you to use data breakpoints to see all changes to the object's refcount, useful for detecting leaks and other such things.
Clone this wiki locally