As far as I know, a backscript can be removed under only two circumstances:

- with the "remove" command

- when the stack containing the frontscript object has its
  destroyStack is set to true and the stack is closed

Yet somehow the RevNet backscript is being purged and I can find neither of those two circumstances at play.

RevNet has two components: GoRevNet is the local plugin that fetches RevNet from one of my servers. Because both stacks need a download routine that updates a progress bar, I put that code in a backscript in an object in GoRevNet, with the aim of avoiding code redundancy and minimizing the size of the downloaded RevNet stack. While the GoRevNet stack closes after it has successfully downloaded RevNet, the backscript remains in place until RevNet is closed; a closeStack handler in RevNet does the tidying up of the environment, removing that backscript since it will no longer be needed until the next time GoRevNet is opened.

In the year and half RevNet's been in circulation I've had three reports of behavior which suggests GoRevNet's backscript is being purged. In the most recent case the purging of the backscript has been confirmed, and the destroyStack of GoRevNet has been confirmed to remain "false".

Of course the most solid fix would be to go ahead and have redundant code in each and get rid of the backscript entirely (did that this morning), but that wouldn't address the mystery here: Why is it working great for most people but not for the three reported cases, and what could be purging that backscript?

In each of these cases their setup is reported to be a "stock" installation -- no additional plugins or other modifications to the Rev installation, and all three are running OS X.

A further data point is that this issue has not been reported when using RevNet within the MetaCard IDE, and in spite of my best efforts I've been unable to reproduced the issue here.

I ran a search through the message path for the phrase "remove script", and while I was able to find a few cases where the IDE removes backscripts each one was explicitely removing a specific IDE backscript, so it should not affect any others.

Can you think of anything else that might be causing the backscript to be removed out from under only a very few users yet work fine for everyone else?

--
 Richard Gaskin
 Fourth World Media Corporation
 ___________________________________________________
 Rev tools and more:  http://www.fourthworld.com/rev



_______________________________________________
use-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to