Subj : how to terminate a script? To : netscape.public.mozilla.jseng From : gabor Date : Sun Sep 19 2004 11:17 am hi, i've been using rhino to run javascript scripts.. what can i do if someone starts a script like "while(1) {}" ? is there a way to stop it's execution? for now i am running the scripts in a different thread, and ignore it after a given timeout, so it will not block the execution of the whole program, but that's all i can do..that thread will still run is there anything to stop a script from a different thread? or to execute it with a timeout value? thanks, gabor -- That's life for you, said McDunn. Someone always waiting for someone who never comes home. Always someone loving something more than that thing loves them. And after awhile you want to destroy whatever that thing is, so it can't hurt you no more. -- R. Bradbury, "The Fog Horn" .