CFile::SetLength() exception in Storage Card folder

In the device emulator, CFile::SetLength() throws an exception when used on files in the Storage Card shared folder. Is this a bug or is that behavior to be expected




Answer this question

CFile::SetLength() exception in Storage Card folder

  • Geeee

    Moving to Emulator forum - Barry might be able to help

  • enric vives

    "This should be fixed with next release of WindowsCE/WindowsMobile and DeviceEmulator."

    Has this happened yet I'm also getting it on FlushFileBuffers(handle).


  • Xargo

    Hmm this is the 2.0 beta. I guess I'll just ignore this exception if the previous write (of the same length) was successful.

    Thanks.



  • pgems

    Yes there is a know issue with Folder-sharing driver passing size equal/smaller than the current file size to SetEndOfFile/CFile::SetLength fails with ERROR_NOT_SUPPORTED. This should be fixed with next release of WindowsCE/WindowsMobile and DeviceEmulator.

    -Thanks,

    Mohit


  • mabxsi

    I've seen some irregularities with write file access when the file is located on the emulated storage card. It seems to be fixed (at least for me it was) in the beta of the emulator 2.0

  • Bapa

    This is broken still when using the brand-new wm6 emulator (images ).  Busted for, going on, two years, this fundamental file I/O API.  Have programmers gotten so used to crap that they put up with this   You can't shrink a file on the emulator's storage card.  You can't call FlushFileBuffers.  Then there's wfopen not working correctly.  This stuff just hangs around, broken and bleeding.  Why   Don't they pay you guys enough to fix things
  • CFile::SetLength() exception in Storage Card folder