I've created a screensaver, and it works perfectly when I right click on the file and use the 'Test' button. It also works when I try to preview it in the Screensaver pane of desktop settings.
But it refuses to run when the screensaver runs automatically after a set time. It gives an automation error. Is there a way of finding out what the problem is?
Last edited by Daz223; 03-20-2006 at 01:04 PM.
Reason: Needed notifications enabled
Code : DDERR_SURFACELOST
Decimal : -2005532222
Hex : 887601C2
Description : Access to this surface is being refused because the surface is gone. The DIRECTDRAWSURFACE object representing this surface should have Restore called on it.
__________________
Dan B
"Don't anthropomorphize computers. They don't like it."
Trig is for wuss's - Coordinate Geometry RULES!
Thanks, but I've drawn a blank. I put in some code to restore the surfaces, and the automation error disappeared, but the program still won't run. It just sits there at the bottom of the screen.
Why would a screensaver behave this way? Does anyone know Windows XP enough to explain why there is a different way of running it from using the 'Test' function?
Last edited by Daz223; 03-21-2006 at 12:20 PM.
Reason: More info
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET. subscribe