Jump to content
  • Advertisement
Sign in to follow this  
jdub

(SlimDX)DirectX debug runtime problem

This topic is 3432 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!