What does Windows Vista error 0x00000005 mean?
Applications that are reading file allocation table (FAT) based storage devices at
the time of a resume may receive the following error message from the file system:
This occurs although the file has appropriate sharing and access
Examples of storage media that frequently use the FAT file system on
Pocket PC 2002 are the PCMCIA PC Card ATA, the Compact Flash (CF) Storage Card, and
the Secure Digital (SD) Memory Card.
This behavior is observed when using Pocket
PC 2002 Adaptation Kit Update 4 (AKU4) and later.
Applications can handle this situation by detecting the
specific error code while reading a storage card file, and then retrying for a short
period until the device is ready. The following is an example C code fragment
that demonstrates this concept:
while ( !WriteFile( hFile, achBuffer, dwBytesRequested, &dwBytesReturned, 0 ) &&
( ERROR_ACCESS_DENIED == GetLastError() ) )
// Access Denied: Maybe the file system is not ready yet.
if ( tries > 4 )
// It has been a few seconds. The file cannot be accessed.
You can use the same approach for other programming languages.
For applications that access the storage card through middleware libraries that
do not provide direct access to the file system, you may have to implement
transactional or block verification methods to get reliable data transfer
across a suspend resume.
Mar 09, 2009 |
Microsoft Windows Vista Home Premium with...