forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

When using Dropbox and Google Drive

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Fri Jan 18, 2019 6:11 am    Post subject: When using Dropbox and Google Drive Reply with quote

I started off finding "problems" in my code and tracked the issues to Dropbox and similar programs of its ilk (Google Drive, One Drive, etc.).

The issue comes when you open a file (usually with exclusive access) immediately after closing it after updating it. Other programs (Quicken comes to mind) also have poor interactions when this occurs.

The manifestation is that when you open the file for exclusive access (after it has been changed), Dropbox may already have control of the file, and the open will fail. The likelihood is 90+%. With Quicken, it is every time. It depends on the size of the file, and the delay between closing it and re-opening it. The time it takes Dropbox to send the file to the server is also part of the equation.

The key is to do one of the following:
    Wait for a sufficient amount of time before re-opening the file
    Wait for the file to be come available by retrying the open
    Pause the Dropbox (or similar) application

I have also seen this interaction when performing a compile, where the object folder is being monitored for changes. It is much more unlikely. Perhaps 1 in every 600 compile operations has an issue. As I say, it is rare.
Back to top
View user's profile Send private message Visit poster's website
John-Silver



Joined: 30 Jul 2013
Posts: 1520
Location: Aerospace Valley

PostPosted: Mon Jan 21, 2019 3:11 am    Post subject: Reply with quote

WOW !

You use Dropbox as a remote folder !?! Brave man.

I use simply as storage.
I didn't eveen know you could open/resav files in there.

Useful to knoq this though, thanks for the tip.
_________________
''Computers (HAL and MARVIN excepted) are incredibly rigid. They question nothing. Especially input data.Human beings are incredibly trusting of computers and don't check input data. Together cocking up even the simplest calculation ... Smile "
Back to top
View user's profile Send private message
wahorger



Joined: 13 Oct 2014
Posts: 1217
Location: Morrison, CO, USA

PostPosted: Mon Jan 21, 2019 5:55 am    Post subject: Reply with quote

John, yes, it works great! I have an upgraded account, so it saves the last 120 days of changes for me. That's source, command files, etc. Anything that is on the drive. I save the executables, objects, etc. on a different logical drive anyway so it doesn't clutter up my space, AND since it will upload a file when it changes (i.e. a re-link), it uses time and bandwidth fo larger files (like executables).

If I don't need it to be updating, I just tell it to pause syncing.
Back to top
View user's profile Send private message Visit poster's website
mecej4



Joined: 31 Oct 2006
Posts: 1885

PostPosted: Mon Jan 21, 2019 5:02 pm    Post subject: Re: Reply with quote

John-Silver wrote:
WOW !

You use Dropbox as a remote folder !?! Brave man.

I use simply as storage.
I didn't eveen know you could open/resav files in there.

Useful to knoq this though, thanks for the tip.

There are many utilities that let you map Web storage to a Windows drive letter. One example is NetDrive: http://www.netdrive.net . Other cloud hosts such as Dropbox may have a desktop client that you can download and use for the same purpose.

If multiple users are likely to access such a mapped drive at the same, adequate steps need to be taken to avoid leaving files in incoherent states.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group