Microsoft KB Archive/326160

From BetaArchive Wiki
Knowledge Base


Article ID: 326160

Article Last Modified on 5/26/2005



APPLIES TO

  • Microsoft Windows CE .NET 4.0



This article was previously published under Q326160

SYMPTOMS

When a file is open on a file allocation table-based (FAT-based) medium (such as a storage card or hard disk), another process can rename, move, or delete the file. Although the file system can track open files that are renamed or moved by the file handle, some programs do not expect files to be able to be relocated while they are open.

CAUSE

The FAT file system was changed in Windows CE 3.0 hotfix 83 (in December, 2001) to permit files that are open to be moved. The change also permits files to be deleted while they are open.

RESOLUTION

A supported software update is now available from Microsoft as Windows CE 4.0 Core OS QFE 326160. 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 How to locate core operating system fixes for Microsoft Windows CE Platform Builder products


The English version of this package has the following file attributes or later:

   Date         Time   Version    Size     File name
   --------------------------------------------------------------------------
   10-Sep-2002  22:41  4.0.2.910  662,112  020910_armv4i_wce40-q326160.exe   
   10-Sep-2002  22:41  4.0.2.910  666,208  020910_armv4t_wce40-q326160.exe   
   10-Sep-2002  22:41  4.0.2.910  662,112  020910_armv4_wce40-q326160.exe    
   10-Sep-2002  22:41  4.0.2.910  617,056  020910_mips16_wce40-q326160.exe   
   10-Sep-2002  22:41  4.0.2.910  682,592  020910_mipsii_fp_wce40-q326160.exe
   10-Sep-2002  22:41  4.0.2.910  682,592  020910_mipsii_wce40-q326160.exe  
   10-Sep-2002  22:41  4.0.2.910  703,072  020910_mipsiv_fp_wce40-q326160.exe
   10-Sep-2002  22:41  4.0.2.910  703,072  020910_mipsiv_wce40-q326160.exe  
   10-Sep-2002  22:41  4.0.2.910  633,440  020910_sh3_wce40-q326160.exe  
   10-Sep-2002  22:41  4.0.2.910  633,440  020910_sh4_wce40-q326160.exe  
   10-Sep-2002  22:41  4.0.2.910  580,192  020910_x86_wce40-q326160.exe  

The English version of this fix has the file attributes (or later) that are listed in the following table.

   Date         Time                     Size    File name
   ---------------------------------------------------------
   Path: Public\Common\Oak\Lib\Armv4\Debug
   30-Aug-2002  18:27                    720,374  Fatfsd.lib
   30-Aug-2002  18:27                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Armv4\Retail
   30-Aug-2002  18:27                    406,500  Fatfsd.lib
   30-Aug-2002  18:27                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Armv4i\Debug
   30-Aug-2002  18:29                    721,126  Fatfsd.lib
   30-Aug-2002  18:29                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Armv4i\Retail
   30-Aug-2002  18:29                    407,312  Fatfsd.lib
   30-Aug-2002  18:29                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Armv4t\Debug
   30-Aug-2002  18:28                    685,860  Fatfsd.lib
   30-Aug-2002  18:28                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Armv4t\Retail
   30-Aug-2002  18:28                    406,740  Fatfsd.lib
   30-Aug-2002  18:28                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mips16\Debug
   30-Aug-2002  18:32                    625,360  Fatfsd.lib
   30-Aug-2002  18:32                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mips16\Retail
   30-Aug-2002  18:31                    345,170  Fatfsd.lib
   30-Aug-2002  18:31                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mipsii\Debug
   30-Aug-2002  18:30                    737,222  Fatfsd.lib
   30-Aug-2002  18:30                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mipsii\Retail
   30-Aug-2002  18:30                    407,488  Fatfsd.lib
   30-Aug-2002  18:30                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\MipsII_fp\Debug
   30-Aug-2002  18:33                    737,362  Fatfsd.lib
   30-Aug-2002  18:33                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\MipsII_fp\Retail
   30-Aug-2002  18:32                    407,630  Fatfsd.lib
   30-Aug-2002  18:32                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mipsiv\Debug
   30-Aug-2002  18:31                    753,730  Fatfsd.lib
   30-Aug-2002  18:31                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mipsiv\Retail
   30-Aug-2002  18:30                    424,094  Fatfsd.lib
   30-Aug-2002  18:30                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mipsiv_fp\Debug
   30-Aug-2002  18:33                    753,870  Fatfsd.lib
   30-Aug-2002  18:33                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Mipsiv_fp\Retail
   30-Aug-2002  18:33                    424,236  Fatfsd.lib
   30-Aug-2002  18:33                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Sh3\Debug
   30-Aug-2002  18:26                    629,104  Fatfsd.lib
   30-Aug-2002  18:26                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Sh3\Retail
   30-Aug-2002  18:25                    372,310  Fatfsd.lib
   30-Aug-2002  18:25                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Sh4\Debug
   30-Aug-2002  18:26                    628,746  Fatfsd.lib
   30-Aug-2002  18:26                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\Sh4\Retail
   30-Aug-2002  18:26                    371,524  Fatfsd.lib
   30-Aug-2002  18:26                     77,824  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\X86\Debug
   30-Aug-2002  18:25                    616,492  Fatfsd.lib
   30-Aug-2002  18:25                     86,016  Fatfsd.pdb

   Path: Public\Common\Oak\Lib\X86\Retail
   30-Aug-2002  18:24                    328,118  Fatfsd.lib
   30-Aug-2002  18:24                     77,824  Fatfsd.pdb

This fix also contains an update to Shared Source.

STATUS

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

MORE INFORMATION

The code change that is included in this update permits functions such as MoveFile and DeleteFile to operate on an open file if the file is opened with sharing permissions that permit write access (FILE_SHARE_WRITE). If FILE_SHARE_WRITE access is not granted when the file is opened, the DeleteFile and MoveFile will not work and will generate "ERROR_ACCESS_DENIED."

The Windows CE RAM file system does not permit files that are opened in exclusive write mode to be renamed or deleted.

Keywords: kbbug kbfix kbqfe KB326160