Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Game Programming > DirectX > Troubleshooting automation errors


Reply
 
Thread Tools Display Modes
  #1  
Old 03-20-2006, 01:03 PM
Daz223 Daz223 is offline
Newcomer
 
Join Date: Feb 2006
Posts: 6
Angry Troubleshooting automation errors


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
Reply With Quote
  #2  
Old 03-20-2006, 01:06 PM
DaftasBrush's Avatar
DaftasBrush DaftasBrush is offline
Senior Contributor

* Expert *
 
Join Date: Jun 2003
Location: A room without Windows
Posts: 896
Default

Post the error number...
Google the Error Number...

I've collected quite a few over time... I'll post them in a minute.
__________________
Dan B
"Don't anthropomorphize computers. They don't like it."
Trig is for wuss's - Coordinate Geometry RULES!
Reply With Quote
  #3  
Old 03-20-2006, 01:11 PM
Daz223 Daz223 is offline
Newcomer
 
Join Date: Feb 2006
Posts: 6
Default

That was quick!

Ok it's run-time error '-2005532222 (887601c2)'
Reply With Quote
  #4  
Old 03-20-2006, 01:13 PM
DaftasBrush's Avatar
DaftasBrush DaftasBrush is offline
Senior Contributor

* Expert *
 
Join Date: Jun 2003
Location: A room without Windows
Posts: 896
Default

I've got......

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!
Reply With Quote
  #5  
Old 03-20-2006, 01:19 PM
Daz223 Daz223 is offline
Newcomer
 
Join Date: Feb 2006
Posts: 6
Default

Ok, what's causing it and how do I fix it?
Reply With Quote
  #6  
Old 03-20-2006, 01:24 PM
DaftasBrush's Avatar
DaftasBrush DaftasBrush is offline
Senior Contributor

* Expert *
 
Join Date: Jun 2003
Location: A room without Windows
Posts: 896
Default

Quote:
The DIRECTDRAWSURFACE object representing this surface should have Restore called on it.
Take a look at the help on Restore method.. it details how surfaces can be lost, and what you need to do to get them back.
__________________
Dan B
"Don't anthropomorphize computers. They don't like it."
Trig is for wuss's - Coordinate Geometry RULES!
Reply With Quote
  #7  
Old 03-20-2006, 02:05 PM
Daz223 Daz223 is offline
Newcomer
 
Join Date: Feb 2006
Posts: 6
Default

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
Reply With Quote
  #8  
Old 03-21-2006, 01:11 PM
Daz223 Daz223 is offline
Newcomer
 
Join Date: Feb 2006
Posts: 6
Default

I'm still looking for an answer to this.
Reply With Quote
  #9  
Old 03-22-2006, 08:35 AM
Daz223 Daz223 is offline
Newcomer
 
Join Date: Feb 2006
Posts: 6
Default

I've fixed this problem now. It was to do with the way I was setting the screen resolution. Thanks to DaftasBrush for the pointers.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
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
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->