Files Become Corrupted

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
montymay
Posts: 145
Joined: Thu Jul 18, 2013 5:23 am

Files Become Corrupted

Post by montymay » Mon Mar 23, 2015 6:59 am

I was running LC 7.0.3 and encountered the problem of stacks becoming corrupted for a reason I do not understand. In Windows Explorer when I closed my project stack or a substack, it would instantly shrink in size and a new stack with the same name would appear in Windows Explorer with a "~" added at the end of the filename and the file icon would change to that of Adobe Reader. LC would tell me to go to my backup, but even backups would corrupt in the same way. This problem is making LiveCode an unworkable program! So I downloaded the last stable release and hope the problem would go away but files continue to corrupt in the same way, making me go back to an earlier version and reconstruct the file, which would then become corrupt! It is happening on one of the two Windows computers on which I am developing the program, so I will see if it replicates on the other machine, but in the meantime, has anyone experienced the same problem? Thanks for your assistance.

Monty

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Files Become Corrupted

Post by jacque » Mon Mar 23, 2015 4:27 pm

Before saving, LiveCode creates a copy on disk and adds the tilde to the name. If the save succeeds the copy is deleted. The tilde file is your backup, remove that character from the end of the name and you will have the original back again (minus changes since the last save.)

There's some reason files can't be successfully saved to disk. It may be disk related, or something in the file itself. You can try saving to a different location, like the desktop. Or if you've added images or other objects since the last successful save, try deleting those. But since it's happening to backups that used to work, I'd suspect disk problems first.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply