Microsoft KB Archive/265450

= BUG: Databases Are Being Corrupted =

Article ID: 265450

Article Last Modified on 4/14/2004

-

APPLIES TO


 * Microsoft Windows CE 2.12 for the Handheld PC
 * Microsoft Windows CE 2.11 for the Handheld PC
 * Microsoft Windows CE 2.0 for the Handheld PC
 * Microsoft Windows CE 1.0

-



This article was previously published under Q265450



SYMPTOMS
File-write operations may result in data that is corrupted in the memory. This problem is observed by database developers.



CAUSE
When you use a half-page size (2K) you can create a situation where there is free space, but it is so fragmented that no block is large enough to write to. In this situation, file system does not try to compact itself because its free space count is large. Data blocks are written into the cache and committed into system memory when the next block of data comes in. Because the file system does not compact in this situation and the system does not have a block free to commit the cache block, the cache manager drops the block, which results in a data corruption.



RESOLUTION
It is safe to use full-page-size blocks, because they will trigger compaction.



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

Keywords: kbbug KB265450

-

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

© Microsoft Corporation. All rights reserved.