![]() If FileHandle = INVALID_HANDLE_VALUE then If ABuffered then FlagsAndAttributes := FILE_ATTRIBUTE_NORMALĮlse FlagsAndAttributes := FILE_FLAG_NO_BUFFERING įileHandle := CreateFile(FileToRead, GENERIC_READ, FILE_SHARE_READ, nil,OPEN_EXISTING, FlagsAndAttributes, 0) So obviously problem is here and the question is why is this happening? usesįunction GetTimeForRead(ABuffered: boolean): single įileToRead = // name of file with maybe 500 MByte size Later I've noticed that SrcStream.Size returns always value -1. ![]() I tried this code here How to unload a file from cache? unfortunately I get error message saying "Out of memory while expanding memory stream". I need to read files directly from drive without any system buffering.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |