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: A memory leak occurs when the "CreateFile" method is called together with the "OPEN_EXISTING" flag on an encrypted volume in Windows Embedded CE 6.0 R3


Symptoms

Consider the following scenario:
  • You run a Windows Embedded CE 6.0 R3-based image that contains the Storage Manager components on the target device.
  • You install the Encfilt.dll encryption filter on a volume of a storage device. Then, the volume is encrypted.
  • You run an application that calls the CreateFile method together with the OPEN_EXISTING flag on a file in the encrypted volume.
  • The file in the encrypted volume does not exist. 

In this scenario, a memory leak occurs. When this issue occurs for a long time, the application runs out of memory.

↑ Back to the top


Cause

This issue occurs because of an error in the Encfilt.dll encryption filter.

↑ Back to the top


Resolution

Software update information

A supported software update is now available from Microsoft as Windows Embedded CE 6.0 Monthly Update December 2011. In the "File information" section, the package file name contains the product version, the date, the Knowledge Base article number, and the processor type. The package file name format is as follows:
Product version-yymmdd-kbnnnnnn-processor type
For example, Wincepb60-110128-kb2492159-armv4i.msi is the ARMV4i Windows Embedded CE 6.0 Platform Builder fix that is documented in KB article 2492159 and that is contained in the January 2011 monthly update.

To resolve this problem immediately, download this Windows Embedded CE 6.0 Monthly Update from the following Microsoft website.

Microsoft Download Center

Prerequisites

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

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.

Installer files
File nameFile sizeDateTime
Wincepb60-111213-kb2646374-sh4.msi638,97613-Dec-201120:41
Wincepb60-111213-kb2646374-x86.msi626,68813-Dec-201120:41
Wincepb60-111213-kb2646374-armv4i.msi647,16813-Dec-201120:41
Wincepb60-111213-kb2646374-mipsii.msi647,16813-Dec-201120:41
Wincepb60-111213-kb2646374-mipsii_fp.msi647,16813-Dec-201120:41
Wincepb60-111213-kb2646374-mipsiv.msi651,26413-Dec-201120:41
Wincepb60-111213-kb2646374-mipsiv_fp.msi651,26413-Dec-201120:41
Files that are included in this update package
File nameFile sizeDateTimePath
Windows embedded ce 6.0_update_kb2646374.htm7,63913-Dec-201120:20111213_kb2646374
Encfilt.lib351,58402-Dec-201119:53Public\Common\Oak\Lib\Armv4i\Debug
Encfilt.lib229,30202-Dec-201119:53Public\Common\Oak\Lib\Armv4i\Retail
Encfilt.lib345,88602-Dec-201119:53Public\Common\Oak\Lib\Mipsii\Debug
Encfilt.lib236,39602-Dec-201119:53Public\Common\Oak\Lib\Mipsii\Retail
Encfilt.lib345,93002-Dec-201119:53Public\Common\Oak\Lib\Mipsii_fp\Debug
Encfilt.lib236,42802-Dec-201119:53Public\Common\Oak\Lib\Mipsii_fp\Retail
Encfilt.lib353,05402-Dec-201119:53Public\Common\Oak\Lib\Mipsiv\Debug
Encfilt.lib243,16602-Dec-201119:53Public\Common\Oak\Lib\Mipsiv\Retail
Encfilt.lib353,09802-Dec-201119:53Public\Common\Oak\Lib\Mipsiv_fp\Debug
Encfilt.lib243,19802-Dec-201119:53Public\Common\Oak\Lib\Mipsiv_fp\Retail
Encfilt.lib297,26002-Dec-201119:53Public\Common\Oak\Lib\Sh4\Debug
Encfilt.lib210,63402-Dec-201119:53Public\Common\Oak\Lib\Sh4\Retail
Encfilt.lib305,13402-Dec-201119:53Public\Common\Oak\Lib\X86\Debug
Encfilt.lib200,63602-Dec-201119:52Public\Common\Oak\Lib\X86\Retail

↑ Back to the top


References

For more information about the CreateFile method, visit the following Microsoft Developer Network (MSDN) website:For more information about how to enable encryption, visit the following MSDN website: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: kbqfe, kbfix, kbnotautohotfix, kbpubtypekc, kbexpertiseinter, kb

↑ Back to the top

Article Info
Article ID : 2646374
Revision : 1
Created on : 1/7/2017
Published on : 1/10/2012
Exists online : False
Views : 79