3D Screensaver interfering with WPF application (Windows XP)

Posted by Andrew Keith on Stack Overflow See other posts from Stack Overflow or by Andrew Keith
Published on 2010-04-19T01:33:08Z Indexed on 2010/04/19 1:53 UTC
Read the original article Hit count: 285

Filed under:
|
|

I have a fairly large application that uses WPF for its user interface. I recently found an unusual defect regarding 3D screensavers. The 3D screensavers 3D FlowerBox,3D Flying Objects,3D Pipes,3D Text causes 1 of my WPF windows to disappear when the screensaver activates. Other screensavers are fine.

My application only encounters this problem on Windows XP.

I have some experience with DirectX. When a 3D screensavers activates, the d3d device context will be switched to exclusive mode. I reckon that WPF has trouble restoring the device context when the device switches back to cooperative mode (hence why its only affecting windows XP)

Has anyone seen such a scenario occur before ? Is there a remedy for the problem ?

Windows XP SP3, DirectX 9.0c, .NET 3.5

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf