在我的DirectX应用程序结束时,我遇到了"The Direct3D device has a non-zero reference count, meaning some objects were not released."的错误。这个应用程序很大而且不是我写的,我该如何调试哪些资源没有被释放?
D3DX: Set HKLM\Software\Microsoft\Direct3D\D3DXBreakOnAllocId=0x1c17 to debug
allocation id ^^^^^^
或者,像这样:
Direct3D9: (WARN) :Memory Address: 00385580 lAllocID=1 dwSize=000047f8, (pid=00000474)
allocation id ^