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.

Moderators: Klaus, FourthWorld, heatherlaine, robinmiller, kevinmiller

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

Recover last session...

Post by rinzwind » Tue Jan 26, 2016 1:25 pm

Argh.. it crashed. Says it all.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 3636
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Recover last session...

Post by richmond62 » Tue Jan 26, 2016 7:22 pm

What crashed?

What says what?

Perhaps a spot more information might elucidate things a bit so that somebody can help you.

Klaus
Posts: 11222
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Recover last session...

Post by Klaus » Wed Jan 27, 2016 3:14 pm

I guess that rinwinds Livecode crashed.
However I ask myself why this should be a "Feature Request"? 8)

rinzwind
Posts: 131
Joined: Tue May 01, 2012 10:44 am

Re: Recover last session...

Post by rinzwind » Wed Jan 27, 2016 4:39 pm

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: 6186
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Recover last session...

Post by dunbarx » Wed Jan 27, 2016 5:23 pm

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: 6862
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Recover last session...

Post by FourthWorld » Wed Jan 27, 2016 5:34 pm

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
Community volunteer LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems: http://FourthWorld.com
LiveCode User Group on Facebook : http://FaceBook.com/groups/LiveCodeUsers/

MaxV
Posts: 1574
Joined: Tue May 28, 2013 2:20 pm
Location: Italy
Contact:

Re: Recover last session...

Post by MaxV » Tue Feb 02, 2016 4:55 pm

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

Post Reply

Return to “Feature Requests”