Recovery of a corrupted stack -- actual case study

Erik Hansen erikhans08 at yahoo.com
Tue Apr 26 01:13:48 EDT 2005


David,

i used your ideas on my bad stack
"songsDB" with the most amazing results!

backgroundbehavior = true for both stacks

1. make a fresh stack
2. copy the bad stack script,
3. copy the bad stack group(s),
   one in this case containing all controls
4. copy all 400 pages of the bad stack

all of the contents of all of the fields
transfered correctly.
buttons to find, sort, limit,
checkbox which fields to display
for printing, all worked correctly.

the bad stack was 137K,
the new one: 16 Megabytes!

then the corker, the "bad" stack somehow
auto-corrected and began to work again!

Erik Hansen

--- David Burgun <dburgun at dsl.pipex.com> wrote:

> If you need to save the scripts then try this:
> 
> With a fresh load of RunRev (making sure there
> are no Stacks in
> memory), open the message box and type:
> 
> answer file "Which Stack?";edit script
> of stack it.
> 
> This will prompt you for a file, select the
> Stack in question.
> 
> Which will open the Stack Script, you can use:
> edit script of card X
> of stack it or edit script of control "X" of
> card "Y" of stack it
> 
> This should allow you to at least copy your
> Scripts into a text
> file(s) so you can re-paste them.
> 
> You can then try to open the Script using the
> command "open stack
> it", however this may crash the IDE if the
> Stack is really corrupted.
> 
> One thing I tried was to comment out the
> "preOpenStack" and
> "openStack" handlers in the Stack Script and
> save it back using the
> "Apply and Save Stack" command (after making a
> backup).  Once you
> have saved the stack quit RunRev and try
> reloading the Stack. If it
> now works you know it's something in your
> preOpen ot Open handler
> that is causing the IDE to barf when the Stack
> is first opened.
> 
> You can also write a tool stack that you can
> use to extract Objects
> from the Stack in question. If you need more
> help on this feel free
> to contact me directly. I have become quite a
> expert at recovering
> "weird" Stacks lately!
> 

erik at erikhansen.org    http://www.erikhansen.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the use-livecode mailing list