sorry -- different Eval. I meant the Eval class of Jmol, not the
eval() command of Java/JavaScript. My next test involves instead of
always using a SINGLE instantiation of Eval, to have the scriptWait()
command create (and dispose of, I think)
e = new Eval(this)
e.runEval(.....)
instead of the current:
eval.runEval(...)
that is, using the previous eval instance. I suspect there are
problems with this and "define" but for now I'm not going to worry
about that.
Thanks.
Bob
Miguel wrote:
what do you think is going on?
I think it has something to do with how Eval is threaded.
I think that there are lots of threading problems between Java and
JavaScript.
I don't think that I have ever seen anything that talks about when it is
'legal' for a Java applet to call JavaScript 'eval'. It says that Java
programs can call 'eval', but I have no confidence that it is robust.
That is a fundamental problem and one of the primary reasons that I don't
like the callbacks.
Several
times I saw on the Macs I was using that it got to "clearThread()" and
just died right there -- never came back from that routine (myThread =
null).
The odd thing is, though, scriptWait() doesn't use a separate thread.
"myThread" should already be null. So that makes little sense to me.
I'm guessing that we are seeing this now because it's the first time
I'm using calls to scriptWait() in rapid succession.
Advice?
Not really. I think that your efforts to maintain an event queue in Java
were in the right direction.
Sorry ... I can't put any more time into this today.
Miguel
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers
--
Robert M. Hanson, [EMAIL PROTECTED], 507-646-3107
Professor of Chemistry, St. Olaf College
1520 St. Olaf Ave., Northfield, MN 55057
mailto:[EMAIL PROTECTED]
http://www.stolaf.edu/people/hansonr
"Imagination is more important than knowledge." - Albert Einstein
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers