Recover last session...

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
rinzwind
Posts: 135
Joined: Tue May 01, 2012 10:44 am

Recover last session...

Post by rinzwind »

Argh.. it crashed. Says it all.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10433
Joined: Fri Feb 19, 2010 10:17 am

Re: Recover last session...

Post by richmond62 »

What crashed?

What says what?

Perhaps a spot more information might elucidate things a bit so that somebody can help you.
Klaus
Posts: 14327
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Recover last session...

Post by Klaus »

I guess that rinwinds Livecode crashed.
However I ask myself why this should be a "Feature Request"? 8)
rinzwind
Posts: 135
Joined: Tue May 01, 2012 10:44 am

Re: Recover last session...

Post by rinzwind »

Because it would be very nice if LC could recover the work before the crash happened...
Yeah I know about saving etc, still an autosave (and accompanying maintenance/deleting of old save files) would be welcome.

You know.. you start a new project... fiddle around, trying stuff. And then you're almost at the point thinking: hmm about time to save progress cause it happened to progress into something useful... Crash.
dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10510
Joined: Wed May 06, 2009 2:28 pm

Re: Recover last session...

Post by dunbarx »

Well, there is always:

Code: Select all

on openstack
  autoSave
end openstack

on autosave
   save this stack
   send "autoSave" to this stack in 100
end autosave
Craig Newman
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10105
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Recover last session...

Post by FourthWorld »

rinzwind wrote:Because it would be very nice if LC could recover the work before the crash happened...
Yeah I know about saving etc, still an autosave (and accompanying maintenance/deleting of old save files) would be welcome.
Dunbar provided an auto-save script, and I believe a plugin made by a member of our community for that (SmartSave) is included in the LC install.

If you need state saved in between stack file saves, the only way to do that would be for LC to continually flush its application heap to disk, difficult to do on some OSes and so disk-intensive that I'm confident it would be undesirable in practice.
You know.. you start a new project... fiddle around, trying stuff. And then you're almost at the point thinking: hmm about time to save progress cause it happened to progress into something useful... Crash.
Better still would be to not have the crash at all.

Given the wide range of things our scripts ask of the LiveCode engine, overall it does a pretty good job of maintaining the cardinal rule of scripting: scripts should never be able to crash the engine. For the most part LC provides more graceful degradation through execution error messages.

That said, despite the best efforts of the developers of scripting languages, it's possible to discover ways to crash pretty much all of them.

If you have a repeatable recipe for a crash please file a bug report so it can be addressed:
http://quality.runrev.com/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
MaxV
Posts: 1580
Joined: Tue May 28, 2013 2:20 pm
Contact:

Re: Recover last session...

Post by MaxV »

Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Post Reply