Richard.
Since I was keeping a string of backups in reseerve, I would dump the stack that became unusable and bring up the next one. After digging in various places while still trying to use the stack itself, I noticed the errant mainstack reference. I am aware of the ease in which one can accidentally change the name of a stack in the inspector when you think you are typing somewhere else. This is a bit insidious. But this was the pulldown to set the mainstack. Though this property is settable by command, I am positive I never did this. I could be wrong. Anyway, there is only that one stack in the file. Why this spurious mainstack reference makes all that trouble, is a mystery to me. I am just glad it's over. I might play around with misnaming the mainstack again in another stack or a copy of this one just to see if I can really duplicate the old issue. Not sure I shouldn't leave well enough alone, though. Craig -----Original Message----- From: Richard Gaskin <ambassa...@fourthworld.com> To: use-livecode <use-livecode@lists.runrev.com> Sent: Fri, Mar 23, 2012 10:47 pm Subject: Re: Source of corruption dunbarx wrote: > I had posted earlier about a stack I use that became neurotic. If launched in a new session from the finder, no problem. But if closed, > it could not be reopened in the same session. The "stacks" showed no > reference to it at all soemtimes, though at other times it was > indeed listed, albeit still not visible. In those cases I could get and set its loc and other properties, I just could not see it. > > Lately it had become intermittantly corruptible, with a dialog telling me so, and recomending using a back-up copy. In those cases it would not even > open with a fresh start, and I had to trash it and start over with a backup. Thank you, Mozy. > > It turns out that the stack had inexplicably had its mainstack reference changed to another stack. How were you able to determine that, and fix it, if it was unopenable? -- Richard Gaskin Fourth World LiveCode training and consulting: http://www.fourthworld.com Webzine for LiveCode developers: http://www.LiveCodeJournal.com LiveCode Journal blog: http://LiveCodejournal.com/blog.irv _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode