Microsoft KB Archive/328945

= CreateFileMapping or CreateFileForMapping APIs Do Not Succeed on Large Remote Files, Return 'Out of Memory' Error =

Article ID: 328945

Article Last Modified on 2/2/2006

-

APPLIES TO


 * Microsoft Windows CE .NET 4.0

-



This article was previously published under Q328945



SYMPTOMS
If you try to create a file mapping over a redirector network connection, you are unsuccessful. The CreateFileMapping API or the CreateFileForMapping API returns an &quot;out of memory&quot; error when you try to map a remote file that is larger than available memory. This probrem occurs even if you ask for a paged mapping.



CAUSE
Code added to validate a read buffer in the redirector component is unsuccessful when the kernel checks whether the redirector supports paged file access. This causes the kernel to try to load the whole file into memory; this attempt is unsuccessful if the file size is greater than available RAM. Not all media sources can support paged mapping. In this case the TCP/IP redirector incorrectly reports that it cannot support paged mapping.



RESOLUTION
A supported fix is now available from Microsoft as Windows CE 4.0 Core OS QFE Q328945. To resolve this problem immediately, search for the keyword &quot;QFE&quot; on the following Microsoft Web site:

http://www.microsoft.com/downloads/

The English version of this package should have the following file attributes or later:   Date         Time   Version            Size    File name --  11-Oct-2002  00:38  4.0.2.1011        485,984  021011_armv4i_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        485,984  021011_armv4t_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        485,984  021011_armv4_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        490,080  021011_mips16_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        498,272  021011_mipsii_fp_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        498,272  021011_mipsii_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        510,560  021011_mipsiv_fp_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        510,560  021011_mipsiv_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        473,696  021011_sh3_wce40-q328945.exe 11-Oct-2002 00:38  4.0.2.1011        473,696  021011_sh4_wce40-q328945.exe 11-Oct-2002 00:39  4.0.2.1011        445,024  021011_x86_wce40-q328945.exe

The English version of this fix has the file attributes (or later) that are listed in the following table.   Date         Time   Version            Size    File name --

Path: Public\Common\Oak\Lib\Armv4\Debug 25-Sep-2002 23:28                    528,888  Rdrapi.lib 25-Sep-2002 23:28                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Armv4\Retail 25-Sep-2002 23:18                    263,496  Rdrapi.lib 25-Sep-2002 23:18                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Armv4i\Debug 26-Sep-2002 00:09                    529,372  Rdrapi.lib 26-Sep-2002 00:09                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Armv4i\Retail 25-Sep-2002 23:59                    263,958  Rdrapi.lib 25-Sep-2002 23:59                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Armv4t\Debug 25-Sep-2002 23:48                    503,094  Rdrapi.lib 25-Sep-2002 23:48                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Armv4t\Retail 25-Sep-2002 23:38                    259,168  Rdrapi.lib 25-Sep-2002 23:38                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mips16\Debug 26-Sep-2002 01:25                    539,250  Rdrapi.lib 26-Sep-2002 01:25                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mips16\Retail 26-Sep-2002 01:00                    243,418  Rdrapi.lib 26-Sep-2002 01:00                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mipsii\Debug 26-Sep-2002 00:29                    539,250  Rdrapi.lib 26-Sep-2002 00:29                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mipsii\Retail 26-Sep-2002 00:19                    269,638  Rdrapi.lib 26-Sep-2002 00:19                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\MipsII_fp\Debug 26-Sep-2002 02:01                    539,316  Rdrapi.lib 26-Sep-2002 02:01                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\MipsII_fp\Retail 26-Sep-2002 01:45                    269,712  Rdrapi.lib 26-Sep-2002 01:45                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mipsiv\Debug 26-Sep-2002 00:49                    546,420  Rdrapi.lib 26-Sep-2002 00:49                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mipsiv\Retail 26-Sep-2002 00:39                    274,894  Rdrapi.lib 26-Sep-2002 00:39                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mipsiv_fp\Debug 26-Sep-2002 02:33                    546,484  Rdrapi.lib 26-Sep-2002 02:33                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Mipsiv_fp\Retail 26-Sep-2002 02:18                    274,966  Rdrapi.lib 26-Sep-2002 02:18                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Sh3\Debug 25-Sep-2002 22:47                    474,366  Rdrapi.lib 25-Sep-2002 22:47                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Sh3\Retail 25-Sep-2002 22:37                    241,244  Rdrapi.lib 25-Sep-2002 22:37                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Sh4\Debug 25-Sep-2002 23:07                    474,192  Rdrapi.lib 25-Sep-2002 23:07                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\Sh4\Retail 25-Sep-2002 22:57                    240,930  Rdrapi.lib 25-Sep-2002 22:57                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\X86\Debug 25-Sep-2002 22:27                    460,484  Rdrapi.lib 25-Sep-2002 22:27                     86,016  Rdrapi.pdb

Path: Public\Common\Oak\Lib\X86\Retail 25-Sep-2002 22:18                    211,848  Rdrapi.lib 25-Sep-2002 22:18                     86,016  Rdrapi.pdb



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Keywords: kbbug kbfix kbqfe KB328945

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.