On Jan 11, 2004, at 8:38 AM, Klaus Major wrote:
Hi Thomas,My problem with the preopenstack is that I have a lot of substacks that I don't want to use what is in the preopenstack handler. That is why the startup looks so good. The docs say it is only called once but each time I open a substack it 'reloads' all of the things in the main stack's preopenstack which I don't want to happen.
I just found the on startup and on shutdown handlers. I have tried to clean
up my CD project by putting the initializers into these handlers. The docs say that is what they are for.
Has anyone used these that much? I don't think they load when the stack is launched
in the IDE. I think they only run in the final build.
Does anyone know for sure? I had to put the code in both the startup and preopen
stack handlers. In the preopenstack I put an 'if the environment is "development"
then do the same code as in the startup handler.
I have no experience with "startup" but i would say that "preopenstck" IS the best place to
initialize everything...
And "closestack" or "closestackrequest" or something the best place to cleanup things
before you leave...
Also related to this, I was reading the docs and they say if you want to keep a preference
set to load the variables into a custom property on shutdown and then reload the custom
prop into the variable on start up. I have not been successful in this in my CD. Also, I thought
from this list that the only way to save info was via a separate stack outside the build.
Seems a contradiction.
No, it isn't. Yes, it is! No, it isn't. Yes, it is! No, it isn't. Yes, it is! No, it isn't. Yes, it is! No, it isn't. Yes, it is!
Oh, c'mon this is not an argument, this is a contradiction... etc...
Monty Python... :-D
Contradiction or not, that's the way it works with "modern" OSs... ;-)
Which one is the way it works in "modern" OSs??????
Either a custom prop can store info collected during use or if not, then a sep stack needs to do it????
Which one?
Thanks Klaus,
Tom
Has anyone done this? I need to test it in a simple stack.
Check this for a quick guide:
http://lists.runrev.com/pipermail/use-revolution/2003-December/ 026781.html
Thanks
Tom
Regards
Klaus Major [EMAIL PROTECTED] www.major-k.de
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
Macintosh PowerBook G-4 OSX 10.3.1, OS 9.2.2, 1.25 GHz, 512MB RAM, Rev 2.1.2
Advanced Media Group Thomas J McGrath III • 2003 • [EMAIL PROTECTED] 220 Drake Road, Bethel Park, PA 15102
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
