On 2007.11.02, Dave Bauer <[EMAIL PROTECTED]> wrote:
> I use ns_eval {source the_tcl_file} which only works for one file at a time,
> but seems to make sure the files are reloaded in every interpreter including
> scheduled procedure threads. Reloading in a filter does not work for
> scheduled proc threads. OpenACS has this technique that reloads changed
> files in a registered filter, but it suffers from the same problem that
> occaisionally the files are not reloaded into the interpreter.
One thing to note is that by default, ns_eval is asynchronous--it
actually executes the passed script in a ns_job thread, IIRC.
If you have multiple scripts to ns_eval and they are order-sensitive
(i.e., one file must be sourced before another), then do them all from
the same single ns_eval script:
ns_eval {
source fileA.tcl
source fileB.tcl
}
Forgetting that ns_eval is async. and making multiple ns_eval calls can
be problematic if there's dependencies.
-- Dossy
--
Dossy Shiobara | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network | http://panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
--
AOLserver - http://www.aolserver.com/
To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]>
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject:
field of your email blank.