Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Modeerfx

Member Since 10 Jul 2012
Offline Last Active Jul 19 2012 08:28 PM

Topics I've Started

D3d9 reset issue

10 July 2012 - 09:09 PM

Hi all.

I'm working on a device lost debugging, I opened the Debug version of Direct3D9, when IDirect3DDevice9::Reset was called, the VS console output this:

Direct3D9: (ERROR) :All user created D3DPOOL_DEFAULT surfaces must be freed before ResetEx can succeed. ResetEx Fails.
Direct3D9: (ERROR) :ResetEx failed and ResetEx/TestCooperativeLevel/Release are the only legal APIs to be called subsequently


But I'm not using a IDirect3DDevice9Ex::ResetEx, why 'ResetEx' came out? I have tested both versions of 'DXSDK June 2010' and 'DXSDK April 2007', the output texts are same. Even though, the interface of IDirect3DDevice9Ex was not included in DXSDK April 2007, but it came out anyway! That's weird, can this caused by my system version? I'm using windows7 64-bit.

What I expect is this:

Direct3D9: (ERROR) :The following D3DPOOL_DEFAULT surfaces/buffers/textures still exist
Direct3D9: (ERROR) : D3DRTYPE_TEXTURE
Direct3D9: (ERROR) : Memory Address: 00d67738 lAllocID=1837 dwSize=00000050, (pid=00000714)
Direct3D9: (ERROR) : Stack Back Trace
Direct3D9: (ERROR) : [0] : Address 00FC7CE6
Direct3D9: (ERROR) : [1] : Address 0109BBC3
Direct3D9: (ERROR) : [2] : Address 00FDFAF7
Direct3D9: (ERROR) : [3] : Address 00FDF4A2
Direct3D9: (ERROR) : [4] : Address 00FF4A40
Direct3D9: (ERROR) : [5] : Address 004023CF
Direct3D9: (ERROR) : [6] : Address 00421331
Direct3D9: (ERROR) : [7] : Address 0042165B
Direct3D9: (ERROR) : [8] : Address 004216FC
Direct3D9: (ERROR) : [9] : Address 0041C1F5
Direct3D9: (ERROR) : [10] : Address 7C816FD7
Direct3D9: (ERROR) : [11] : Address 00000000
Direct3D9: (ERROR) : [12] : Address 00000000
Direct3D9: (ERROR) : [13] : Address 00000000
Direct3D9: (ERROR) : [14] : Address 00000000
Direct3D9: (ERROR) : [15] : Address 00000000
Direct3D9: (ERROR) :All user created D3DPOOL_DEFAULT surfaces must be freed before Reset can succeed. Reset Fails.
Direct3D9: (ERROR) :Reset failed and Reset/TestCooperativeLevel/Release are the only legal APIs to be called subsequently


I just wonder how to enable the D3D creation stack trace when resource leak on device reset? I have set EnableCreationStack to 1 in system registry, that can't solve this.

Thanks for any help.

PARTNERS