Sign in to follow this  
trevaaar

Weird problem resetting my device

Recommended Posts

I had some code that was working to reset my Direct3D device, but recently it has just completely stopped working. I'm calling Reset if TestCooperativeLevel returns D3DERR_DEVICENOTRESET with the exact same (completely unmodified) D3DPRESENT_PARAMETERS structure I used to successfully create the device. It keeps returning D3DERR_INVALIDCALL. Any ideas?

Share this post


Link to post
Share on other sites
You have probably created some D3D objects in a memory pool different from "D3DPOOL_MANAGED". If so you will have to release and recreate them manually when the device is lost (release them before calling "reset" on the device).

Try switching to the dx debug runtime and crank up the debug level a few notches - then you'll see d3d telling you what kind of objects that are not release when you try to do a reset.

- Kasper

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this