Jump to content
Xtreme .Net Talk

Device lost error


Recommended Posts

Guest mutant
Posted

Hi.

When I minimize my DX app to do something else and then try to maximize it again I get an error that the device is lost. Anyone had this error before? I dont know how to solve this.

Thanks!

  • *Gurus*
Posted
Check out the DirectX 9 samples - they implement a RecreateSurfaces method (or similar, I'm working purely from memory here). You need to check if your surfaces have been lost on every loop and if so, recreate them. Looking at the samples should help.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...