Missing Substacks

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Missing Substacks

Post by johnmiller1950 » Wed Jan 26, 2011 2:29 am

H-E-L-P !!!!!

I have been working on a very large project all day. My mainstack has 12 substacks that are fairly complex. I'm not sure what happened, but at one point I saved my stack, and my stack size dropped from 16MG down to 9MG, and I'm missing 8 of my substacks.

I archive my stack every day, so I have the one from yesterday that has all my substacks. Is there a way to move those substacks from the archive to my current version without screwing everything up? Or can I replace the mainstack in the archive with my current mainstack? I would hate to have to go back and try to replicate all the changes I made during the day.

I hope someone can help.

John Miller

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1239
Joined: Sat Apr 08, 2006 1:10 pm
Contact:

Re: Missing Substacks

Post by BvG » Wed Jan 26, 2011 1:47 pm

You can easily change the "Mainstack" property of the substacks to the new stack. but only if you rename the old mainstack, because names of all loaded stacks always have to be unique.

so you'd do something like this:
  1. open old mainstack that has substacks
  2. rename old mainstack to anything else
  3. rename susbtacks that do still exist in new mainstack to anything else
  4. open new mainstack that lacks some substacks
  5. open relevant substack, and set the mainstack property to the new mainstack (in the middle of the general tab of the property inspector)
  6. repeat for all substacks that are missing
  7. save the new mainstack
  8. DO NOT, EVER, FOR THE LOVE OF ALL THAT IS HOLY, SAVE THE OLD MAINSTACK. DON'T DO IT. (DANGER)
  9. quit LC to make sure you do not save old mainstack later on because it's still loaded but hidden, or something like that (the ide is not very clear about wether a stack is really closed or not)
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

johnmiller1950
Posts: 116
Joined: Mon Apr 30, 2007 3:33 pm

Re: Missing Substacks

Post by johnmiller1950 » Wed Jan 26, 2011 9:56 pm

Thank You ! Thank You ! Thank You !

deebee
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 89
Joined: Mon Jul 19, 2010 6:59 am

Re: Missing Substacks

Post by deebee » Thu Jan 27, 2011 4:34 am

BvG wrote:DO NOT, EVER, FOR THE LOVE OF ALL THAT IS HOLY, SAVE THE OLD MAINSTACK. DON'T DO IT. (DANGER)
:lol: :lol: :lol:

Post Reply