EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OnFlushFile with NULL FileInfo

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
Posted: 04/17/2011 20:44:18
by Fraser Hutchison (Standard support level)
Joined: 04/17/2011
Posts: 3


The documentation for OnFlushFile states
If FileInfo is empty, your code should attempt to flush everything, related to the disk.

Can anyone explain why this is? I see a lot of calls to OnFlushFile where FileInfo is NULL.

Also, does "flush everything" mean all modified open files?


Posted: 04/18/2011 00:18:20
by Volodymyr Zinin (EldoS Corp.)

Hello Fraser,

"Flush everything" - means all non-flushed yet data (i.e. to flush all modified files). But it's up to you what to do in this callback. It just notifies that someone is performing disk flush. And perhaps in your callbacks implementation is enough to flush the data to some temporary cache.
BTW: The OnFlush callback is optional and you can set it to null.
Posted: 04/18/2011 03:49:01
by Fraser Hutchison (Standard support level)
Joined: 04/17/2011
Posts: 3

Thanks for that Vladimir.

All the best,



Topic viewed 933 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!