Skip to main content
GameDev.net gamedev.net
🔒 Locked

Error Resetting Direct3D Device

Started by Atif Raja Jul 5, 2007 at 12:35 AM 1 replies 1.1k views
Original Post
Atif Raja
Atif Raja
Hello, I have use the directx sample framework for rendering of my scene. But when I use the device object in my render method and try to maximize the window or minimize it, an exception is thrown "Error Resetting the Direct3D device". I also copied the Empty Project of the Direct3D samples and only change the rendering with a simple triangle and still got the same error. Infact the Empty project does not have this error.
Atif Raja
Atif Raja
Thanks for your help, the technique that you referred has solved my problem. What I have done is that, when I maximize the Form or even minimize it, my device will get lost and I have not handled it properly. Now I am doing code in both deviceLost and deviceReset events and it works pretty good. Thanks once again.

It will be good if you could also suggest me some good directx optimization techniques that we will use in our render method.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.