Recent

Author Topic: TIniFile inside dropbox folder  (Read 1845 times)

bobkos

  • New Member
  • *
  • Posts: 32
    • Personal Finance Manager
TIniFile inside dropbox folder
« on: January 21, 2019, 06:36:48 am »
Hello everyone,

Just recently found that the TIniFile created inside dropbox may have strange behavior comparing to the same file created to local drive or for example onedrive folder. I suppose this is happening because of fast open, modify and close of the target file and dropbox client cannnot deal with it in a proper way. For more details I've recorded a small video, please find the link below:

https://www.youtube.com/watch?v=v9NuQJsJ7Ok

The sample code is attached.

Does some one have any idea why this is happening?

Thaddy

  • Hero Member
  • *****
  • Posts: 14197
  • Probably until I exterminate Putin.
Re: TIniFile inside dropbox folder
« Reply #1 on: January 21, 2019, 09:10:16 am »
File locking during sync?
Specialize a type, not a var.

BeniBela

  • Hero Member
  • *****
  • Posts: 905
    • homepage
Re: TIniFile inside dropbox folder
« Reply #2 on: January 21, 2019, 12:41:51 pm »
You should not expect TIniFile to actually save anything in the file


bobkos

  • New Member
  • *
  • Posts: 32
    • Personal Finance Manager
Re: TIniFile inside dropbox folder
« Reply #3 on: January 22, 2019, 02:03:25 pm »
In case if we will use TMemIniFile (with one time UpdateFile), instead of TIniFile (with multiply Create,Write and Free) as in example above, it will save all the data. However in that case we cannot be sure that's the settings will be saved in case of process termination, but it is another issue.

 

TinyPortal © 2005-2018