FIX: Error message when you run an application that calls the IDirectDrawSurface::UpdateOverlay method on a Windows Embedded CE 6.0-based device: "Error: update overlay surface failed"

Article translations Article translations
Article ID: 959374 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

You have an application that calls the IDirectDrawSurface::UpdateOverlay method on a Microsoft Windows Embedded CE 6.0-based device that supports Alpha Blending mechanisms. When you run the application on the device and the Visual Studio 2005 debugger is attached, you may receive the following error message in the Windows CE Debug Output Window:

Error: update overlay surface failed
This problem occurs when the following conditions are true:
  • The DDOVER_ALPHACONSTOVERRIDE flag is set in the method.
  • The dwAlphaConst variable is used in the DDOVERLAYFX structure.

CAUSE

This problem occurs because of a parameter check in the DirectDraw layer that incorrectly validates a constant alpha value for overlays.

RESOLUTION

Software update information

A supported software update is now available from Microsoft as Windows CE 6.0 Platform Builder Monthly Update (November 2008). You can confirm this by scrolling to the "File information" section of this article. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is:
Product version-yymmdd-kbnnnnnn-processor type
For example: Wincepb50-060503-kb917590-armv4i.msi is the ARMV4i Windows CE 5.0 Platform Builder fix that is documented in KB article 917590 and that is contained in the May 2006 monthly update. To resolve this problem immediately, click the following article number for information about obtaining Windows CE Platform Builder and core operating system software updates:
837392 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites

This update is supported only if all previously issued updates for this product have also been installed.

Restart requirement

After you apply this software update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean, and then click Build Platform.
  • On the Build menu, click Rebuild Platform.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any other updates.

File information

The English version of this software update package has the file attributes or the later file attributes that are listed in the following table.

Collapse this tableExpand this table
File nameFile sizeDateTime
Wincepb60-081114-kb959374-armv4i.msi1,437,69614-Nov-200821:43
Wincepb60-081114-kb959374-mipsii.msi1,411,58414-Nov-200821:43
Wincepb60-081114-kb959374-mipsii_fp.msi1,411,58414-Nov-200821:43
Wincepb60-081114-kb959374-mipsiv.msi1,424,89614-Nov-200821:43
Wincepb60-081114-kb959374-mipsiv_fp.msi1,425,40814-Nov-200821:43
Wincepb60-081114-kb959374-sh4.msi1,405,95214-Nov-200821:43
Wincepb60-081114-kb959374-x86.msi1,307,64814-Nov-200821:43


The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Collapse this tableExpand this table
File nameFile sizeDateTimePath
Ddcore.lib1,733,68610-Nov-200823:05Public\Common\Oak\Lib\Armv4i\Debug
Ddcore.lib1,157,41410-Nov-200823:05Public\Common\Oak\Lib\Armv4i\Retail
Ddcore.lib1,707,67810-Nov-200823:06Public\Common\Oak\Lib\Mipsii\Debug
Ddcore.lib1,136,04810-Nov-200823:06Public\Common\Oak\Lib\Mipsii\Retail
Ddcore.lib1,707,77010-Nov-200823:07Public\Common\Oak\Lib\Mipsii_fp\Debug
Ddcore.lib1,136,21210-Nov-200823:06Public\Common\Oak\Lib\Mipsii_fp\Retail
Ddcore.lib1,736,73010-Nov-200823:07Public\Common\Oak\Lib\Mipsiv\Debug
Ddcore.lib1,153,86410-Nov-200823:07Public\Common\Oak\Lib\Mipsiv\Retail
Ddcore.lib1,736,82210-Nov-200823:08Public\Common\Oak\Lib\Mipsiv_fp\Debug
Ddcore.lib1,154,02810-Nov-200823:08Public\Common\Oak\Lib\Mipsiv_fp\Retail
Ddcore.lib1,580,54210-Nov-200823:08Public\Common\Oak\Lib\Sh4\Debug
Ddcore.lib1,081,98010-Nov-200823:08Public\Common\Oak\Lib\Sh4\Retail
Ddcore.lib1,486,50010-Nov-200823:05Public\Common\Oak\Lib\X86\Debug
Ddcore.lib1,014,85210-Nov-200823:05Public\Common\Oak\Lib\X86\Retail

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

For more information about the IDirectDrawSurface::UpdateOverlay method, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn.microsoft.com/en-us/library/aa916653.aspx
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684 Description of the standard terminology that is used to describe Microsoft software updates

Properties

Article ID: 959374 - Last Review: October 9, 2011 - Revision: 2.0
APPLIES TO
  • Windows Embedded CE 6.0
Keywords: 
kbexpertiseadvanced kbfix kbsurveynew kbqfe KB959374

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com