Contents - Index - Previous - Next


FlushFilesOnClose property

 

Applies to

TVCLUnZip component

 

Declaration

property FlushFilesOnClose: Boolean;

 

Description

When set to True this property will cause all files that are open for write to have their disk buffers flushed when they are closed.  When the file is closed, the API call to FlushFileBuffers is made. 

 

This only has an effect ofcourse, on files opened for write and no effect on files opened for reading only.  So when unzipping, this would cause the disk buffers to be flushed for the files that have been extracted, and when zipping, this would cause the archive being created to have it's buffers flushed to disk when closed.  

 

This property has no effect at all, when in a Delphi 1 (16bit) environment or when you have NOSTREAMBUFF defined.