[fpc-pascal] FreePascal Windows - Force files to write to disk

Henry Vermaak henry.vermaak at gmail.com
Tue Mar 21 21:24:45 CET 2017

On 21 Mar 2017 18:59, "James Richters" <james at productionautomation.net>

I have not tried FlushFileBuffers() yet, so I just tried it now,  I am
getting the same results.   I have also tried disabling write caching in
disk management and STILL have the same results.   I am now thinking this
is some caching being done on the SSD that is ignoring FlushFileBuffers()
Probably a 'feature' designed to help extend the life of the SSD, but
making it useless to store data that needs to survive a power failure.

Can you turn off the drive write cache in device manager? You'll have to
double click on the ssd and look around in there.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20170321/48ea7294/attachment.html>

More information about the fpc-pascal mailing list