Sign in to follow this  
devronious

Screen saver crash...

Recommended Posts

As Endurion says, a screensaver is an executable Windows PE like any other. Moreover, nobody writes tutorials on lost devices. Read your API documentation to see why the device may not be behaving correctly. If you still can't work it out, post us some details and code and we'll see what we can do.

Admiral

Share this post


Link to post
Share on other sites
Most tutorials cover lost devices.

Basically, when the screen saver takes effect, your Direct3D calls will fail because the device is lost. Your program will not know about this failing until you call the Present method. The Present call will return an error indicating lost device.

When you detect a lost device, you have to reset or recreate your Direct3D resources (textures, vertex/index buffers, etc). The Direct3D device needs to be reset. For textures, if they are in managed memory, you don't have to worry about them. If they are in default memory, you will have to reload them.

Hope that helps. If you need more info, search for tutorials that talk about lost devices.

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