The ScanVolumeEX function returns an out-of-memory error on a Windows Embedded CE 6.0 R3-based device


Symptoms


Consider the following scenario:
  • You have a Windows Embedded CE 6.0 R3-based device that uses the exFAT file system. 
  • A hard disk of this device has a directory structure that has 5 or more levels in hierarchy that contains lots of files. 
  • You run an application that calls the ScanVolumeEX function to scan a volume of the hard disk for several times.
In this scenario, the function may return a result code 8, which is an out-of-memory error.

Resolution


Software update information

A supported software update is now available from Microsoft as Windows Embedded CE 6.0 Platform Builder Monthly Update (October 2010). You can confirm this by scrolling to the "File information" section. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is as follows:

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 how to obtain 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 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.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English (United States) version of this hotfix installs files that have the attributes that are listed in the following tables. The dates and the times for these files are listed in Coordinated Universal Time (UTC). The dates and the times for these files on your local computer are displayed in your local time together with your current daylight saving time (DST) bias. Additionally, the dates and the times may change when you perform certain operations on the files.
Installer files
File nameFile sizeDateTime
Wincepb60-101029-kb2383946-armv4i.msi552,44829-Oct-201021:44
Wincepb60-101029-kb2383946-mipsii.msi547,32829-Oct-201021:44
Wincepb60-101029-kb2383946-mipsii_fp.msi547,84029-Oct-201021:44
Wincepb60-101029-kb2383946-mipsiv.msi548,35229-Oct-201021:44
Wincepb60-101029-kb2383946-mipsiv_fp.msi548,86429-Oct-201021:44
Wincepb60-101029-kb2383946-sh4.msi547,84029-Oct-201021:44
Wincepb60-101029-kb2383946-x86.msi538,11229-Oct-201021:44
Files that are included in this hotfix package
File nameFile sizeDateTimePath
Windows embedded ce 6.0_update_kb2383946.htm7,72829-Oct-201021:30101029_kb2383946
Exfatutil.lib219,42606-Oct-201014:23Public\Common\Oak\Lib\Armv4i\Debug
Exfatutil.lib152,19806-Oct-201014:23Public\Common\Oak\Lib\Armv4i\Retail
Exfatutil.lib206,62406-Oct-201014:23Public\Common\Oak\Lib\Mipsii\Debug
Exfatutil.lib145,63806-Oct-201014:23Public\Common\Oak\Lib\Mipsii\Retail
Exfatutil.lib206,66406-Oct-201014:23Public\Common\Oak\Lib\Mipsii_fp\Debug
Exfatutil.lib145,66206-Oct-201014:23Public\Common\Oak\Lib\Mipsii_fp\Retail
Exfatutil.lib209,09406-Oct-201014:24Public\Common\Oak\Lib\Mipsiv\Debug
Exfatutil.lib149,07206-Oct-201014:23Public\Common\Oak\Lib\Mipsiv\Retail
Exfatutil.lib209,13406-Oct-201014:24Public\Common\Oak\Lib\Mipsiv_fp\Debug
Exfatutil.lib149,09606-Oct-201014:24Public\Common\Oak\Lib\Mipsiv_fp\Retail
Exfatutil.lib192,91406-Oct-201014:24Public\Common\Oak\Lib\Sh4\Debug
Exfatutil.lib139,94406-Oct-201014:24Public\Common\Oak\Lib\Sh4\Retail
Exfatutil.lib186,70006-Oct-201014:23Public\Common\Oak\Lib\X86\Debug
Exfatutil.lib140,79806-Oct-201014:23Public\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 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