I have a Mac/Windows desktop app, storing and displaying data in a database.
Users have the option to do automatic backups of that data to an external drive, done by simply copying the database to the users preferred drive everytime the app quits. I put that code into the app.CancelClose event. This happened silently - there is no messagebox or option for the user to cancel quitting.
Some users are reporting that if they choose a cloud-based drive to store their backups, such as Dropbox/iCloud/OpenDrive, the automatic backup when the app quits does not happen.
My question: Does all the code in the CancelCode event get executed before the app quits? Why is my backup during the app.cancelClose event not working on cloud-based drives? Is writing to a cloud drive relatively slow, and does the app quit before all the code in the CancelClose event is finished?
11 posts - 5 participants