Article ID: 915480 - Last Review: January 4, 2007 - Revision: 1.0

FIX: An exception occurs in an application that uses the DirectDraw API when another application that uses the DirectDraw API stops unexpectedly on a Windows CE 5.0-based device

On This Page

Expand all | Collapse all

SYMPTOMS

Consider the following scenario:
  • Two applications that use the DirectDraw API are running on a Microsoft Windows CE 5.0-based device.
  • One application creates and then releases a primary surface.
  • The second application creates a palette object.
  • Later, the second application exits unexpectedly.
In this scenario, an exception occurs when the first application calls the CreateSurface function. When the exception occurs, the user receives the following message:
37007 PID:cfe928d6 TID:2fd9731a 0x8fcae6f4: Exception 040 Thread=8fcae6f4 Proc=cfe928d6 'gwes.exe' 37007 PID:cfe928d6 TID:2fd9731a 0x8fcae6f4: AKY=00000051 PC=cccccccc(???+0xcccccccc) RA=02aaf10a(ddcore.dll+0x0005f10a) TEA=cccccccc

CAUSE

When the second application exits, Windows CE releases the Ddhel.dll file. When Windows CE releases the file, the global reference count (gblrefcnt) value in the DD_Release error flag is decremented incorrectly because the first application still requires the Ddhel.dll file. Therefore, when the first application calls the CreateSurface function, and the gblrefcnt value is incorrect, the exception occurs.

RESOLUTION

Software update information

A supported software update is now available from Microsoft as Windows CE 5.0 Platform Builder Monthly Update (November 2006). 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  (http://support.microsoft.com/kb/837392/ ) How to locate core operating system fixes for Microsoft Windows CE Platform Builder products

Prerequisites

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

Restart requirement

You do not have to restart the computer after you apply this software update.

Hotfix replacement information

This software update does not replace any other software updates.

File information

The English version of this package has the file attributes (or later file attributes) that are listed in the following table.
Collapse this tableExpand this table
File nameFile sizeDateTime
Wincepb50-061130-kb915480-armv4i.msi1,864,19230-Nov-200620:53
Wincepb50-061130-kb915480-mipsii.msi1,924,60830-Nov-200620:53
Wincepb50-061130-kb915480-mipsii_fp.msi1,925,63230-Nov-200620:53
Wincepb50-061130-kb915480-mipsiv.msi1,947,64830-Nov-200620:53
Wincepb50-061130-kb915480-mipsiv_fp.msi1,948,67230-Nov-200620:53
Wincepb50-061130-kb915480-sh4.msi1,801,72830-Nov-200620:53
Wincepb50-061130-kb915480-x86.msi1,647,10430-Nov-200620:53
The English version of this software update 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.lib2,753,40821-Nov-200623:57public\directx\oak\lib\armv4i\debug
Ddcore.lib1,860,45621-Nov-200623:56public\directx\oak\lib\armv4i\retail
Ddcore.lib2,811,91021-Nov-200623:58public\directx\oak\lib\mipsii\debug
Ddcore.lib1,816,60621-Nov-200623:57public\directx\oak\lib\mipsii\retail
Ddcore.lib2,812,31821-Nov-200623:59public\directx\oak\lib\mipsii_fp\debug
Ddcore.lib1,817,01221-Nov-200623:59public\directx\oak\lib\mipsii_fp\retail
Ddcore.lib2,849,01022-Nov-200600:01public\directx\oak\lib\mipsiv\debug
Ddcore.lib1,823,36422-Nov-200600:00public\directx\oak\lib\mipsiv\retail
Ddcore.lib2,849,41822-Nov-200600:02public\directx\oak\lib\mipsiv_fp\debug
Ddcore.lib1,823,77022-Nov-200600:01public\directx\oak\lib\mipsiv_fp\retail
Ddcore.lib2,460,17821-Nov-200623:55public\directx\oak\lib\sh4\debug
Ddcore.lib1,675,41621-Nov-200623:55public\directx\oak\lib\sh4\retail
Ddcore.lib2,373,17221-Nov-200623:54public\directx\oak\lib\x86\debug
Ddcore.lib1,599,49021-Nov-200623:53public\directx\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

The DirectDraw API provides support for hardware-accelerated 2-D graphics in Windows CE 5.0. For more information about the DirectDraw API, visit the following Microsoft Developer Network (MSDN) Web site:
http://msdn2.microsoft.com/en-us/library/ms932564.aspx (http://msdn2.microsoft.com/en-us/library/ms932564.aspx)
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

APPLIES TO
  • Microsoft Windows CE 5.0
Keywords: 
kbpubtypekc kbqfe kbfix kbbug KB915480
 

Article Translations

 

Related Support Centers