Sign in to follow this  
jdub

(SlimDX)DirectX debug runtime problem

Recommended Posts

jdub    459
Whenever I maximize my game window, I get an error when I try to reset the device. I tried turning on the debug runtime to recreate the error and see what the console spits out but when I maximize the game, the application just freezes. No error. Nothing. I don't know if I must have set something wrong in the DirectX Control Panel or maybe I didn't install the SDK right. Please Help EDIT: Oh yeah. I forget to say that I am using SlimDX and C#.

Share this post


Link to post
Share on other sites
nuvem    326
Is the debug runtime working? Are you getting anything from it in the log?

If not, device reset errors are usually pretty easy to catch. Just make sure to release all D3DPOOL_DEFAULT resources before the reset, and recreate them after. Most of the time this will be everything but dynamic VBs and render targets.

Also, make sure you're not looping on the device failure without at least calling Application.DoEvents or dropping back out to let the message pump do its thing.

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