Auto-save mechanism

Info about new implemented features, classes, modules or APIs. Might get technical!
wmayer
Site Admin
Posts: 11227
Joined: Thu Feb 19, 2009 10:32 am

Re: Auto-save mechanism

Postby wmayer » Sun Mar 06, 2016 9:20 pm

NormandC wrote:This feature may be creating problems on Windows.

viewtopic.php?p=116675#p116646

The error message is definitely not related to the auto-save mechanism. The error "Failed to write all data to file ..." is only printed if the normal file save failed to write out all data. But this function that prints this error message is not used for the auto-save.
User avatar
NormandC
Posts: 12069
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Auto-save mechanism

Postby NormandC » Sun Mar 06, 2016 9:21 pm

Then how do you explain the appended hash to the filename? That's what the AutoRecovery does, doesn't it?
wmayer
Site Admin
Posts: 11227
Joined: Thu Feb 19, 2009 10:32 am

Re: Auto-save mechanism

Postby wmayer » Sun Mar 06, 2016 10:00 pm

viewtopic.php?f=3&t=14420&start=30#p116699

Just to point it out the creation of backup files and the auto-recovery are two different things. The former is the traditional way how we tried to reduce data loss but this always requires user interaction, i.e. to actively click on the Save file button. The latter works automatically and doesn't require any user interaction and becomes quite handy if the user didn't save his work for a longer time and then suddenly the app crashes.
Drederwisch
Posts: 102
Joined: Tue Dec 13, 2016 9:04 am

Re: Auto-save mechanism

Postby Drederwisch » Fri Mar 03, 2017 3:26 pm

Is this „auto-save“ perhaps the reason for endless waiting-time when you click „cancel“ on certain buttons?
Imagine you are at the end of a construction and in the last sketch you will make a redundant constraint. Now you will get a hint to this mistake and you want to click "cancel"…
Coffee? Tea? Wainting for going on, only by clicking "cancel".
wmayer
Site Admin
Posts: 11227
Joined: Thu Feb 19, 2009 10:32 am

Re: Auto-save mechanism

Postby wmayer » Fri Mar 03, 2017 3:58 pm

Is this „auto-save“ perhaps the reason for endless waiting-time when you click „cancel“ on certain buttons?

The auto-save is actually very fast because it only writes out the stuff that has changed since the last run. And for shapes it uses a function to create binary data which is much faster then the standard BRep exporter.

For the next time you should activate the option "Log message" in the output window because the auto-save writes there out how long it took.