Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

FIX: GetLastError function returns error even when there is a named file-mapping object in Windows Embedded Compact 7


View products that this article applies to.

This article describes an issue in which the GetLastError function in the CreateFileMapping function returns an "ERROR_SUCCESS" error message even when there is a named file-mapping object in Windows Embedded Compact 7. An update is available to resolve this issue. Before you install the update, all previously issued updates for this product must be installed. 

↑ Back to the top


Symptoms

When you use a Windows Embedded Compact 7-based device, threads of some processes call the following functions sequentially:
  • CreateFileMapping
  • MapViewOfFile
  • UnmapViewOfFile
  • CloseHandle
When there is already a named file-mapping object, the GetLastError function in the CreateFileMapping function may still return the following error message:
ERROR_SUCCESS

Note In this situation, you expect that the GetLastError function in the CreateFileMapping function will return the following error message:
ERROR_ALREADY_EXISTS

↑ Back to the top


More Information

Software update information


Download information

The Windows Embedded Compact 7 Monthly Update (August 2014) is now available from Microsoft. To download the Windows Embedded Compact 7 monthly update, go to the following Microsoft Download Center website:


Note The kind of processor that each file applies to is visible in the name of each file in the "File information" section.

Restart requirement

After you apply this 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 Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
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 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.

Files that are included in this hotfix package

File nameFile sizeDateTimePath
Mapfile.c86,89804-Aug-201418:25Private\Winceos\Coreos\Nk\Mapfile
Nkmapfile.lib143,49804-Aug-201418:31Public\Common\Oak\Lib\X86\Retail
Nkmapfile.lib283,37204-Aug-201421:12Public\Common\Oak\Lib\X86\Debug
Nkmapfile.lib265,30604-Aug-201418:31Public\Common\Oak\Lib\X86\Checked
Nkmapfile.lib175,64204-Aug-201418:31Public\Common\Oak\Lib\Armv5\Retail
Nkmapfile.lib371,64004-Aug-201420:27Public\Common\Oak\Lib\Armv5\Debug
Nkmapfile.lib318,00404-Aug-201418:33Public\Common\Oak\Lib\Armv5\Checked
Nkmapfile.lib175,92004-Aug-201418:32Public\Common\Oak\Lib\Armv6\Retail
Nkmapfile.lib371,51204-Aug-201420:28Public\Common\Oak\Lib\Armv6\Debug
Nkmapfile.lib318,01204-Aug-201418:33Public\Common\Oak\Lib\Armv6\Checked
Nkmapfile.lib175,96804-Aug-201418:32Public\Common\Oak\Lib\Armv7\Retail
Nkmapfile.lib370,07204-Aug-201420:28Public\Common\Oak\Lib\Armv7\Debug
Nkmapfile.lib316,57404-Aug-201418:32Public\Common\Oak\Lib\Armv7\Checked
Nkmapfile.lib164,21404-Aug-201418:31Public\Common\Oak\Lib\Mipsii\Retail
Nkmapfile.lib353,36404-Aug-201420:33Public\Common\Oak\Lib\Mipsii\Debug
Nkmapfile.lib293,88204-Aug-201418:32Public\Common\Oak\Lib\Mipsii\Checked
Nkmapfile.lib164,41804-Aug-201418:31Public\Common\Oak\Lib\Mipsii_fp\Retail
Nkmapfile.lib353,58804-Aug-201420:33Public\Common\Oak\Lib\Mipsii_fp\Debug
Nkmapfile.lib294,10204-Aug-201418:32Public\Common\Oak\Lib\Mipsii_fp\Checked
Nkmapfile.lib150,37204-Aug-201418:31Public\Common\Oak\Lib\Sh4\Retail
Nkmapfile.lib290,08404-Aug-201421:09Public\Common\Oak\Lib\Sh4\Debug
Nkmapfile.lib257,72604-Aug-201418:31Public\Common\Oak\Lib\Sh4\Checked


↑ Back to the top


Status

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

↑ Back to the top


References

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

↑ Back to the top


Keywords: kbfix, kbsurveynew, kbexpertiseadvanced, atdownload, kb

↑ Back to the top

Article Info
Article ID : 2990187
Revision : 1
Created on : 1/7/2017
Published on : 9/12/2014
Exists online : False
Views : 180