Don't worry about the command line business -- something was strange; when I logged out and logged back in, that was OK.
I want to emphasize that this is NOT a fix. It's a hack. I just wanted to see that one actually COULD wait on eval. But it broke refresh and moveTo as well, because both of these use wait(). It's just not right. I'm going to undo it now. [EMAIL PROTECTED] wrote: >Bob, > >The interim fix works fine for my purpose -- >I can now use scriptWait() when I need to. >Thank you! > >(I also tried loading a file from the command line >in your current Jmol.jar and it worked fine, >so I'm not sure what you mean below). > >Thanks (and thanks to Andreas for confirming the problem), > >Dave > >On Thu, 20 Jul 2006 22:41:38 -0500, "Bob Hanson" <[EMAIL PROTECTED]> >said: > > >>OK, this is an inappropriate wait() occurring at the beginning of the >>command evaluation. I could reproduce it in Jmol.jar as well. >> >>I've just committed an interim fix. Please see if it works. (bob200603) >> >>Basically, the problem is that when you use scriptWait() it doesn't >>start a new thread for eval. But eval's own refresh() command executes >>viewer.repaintViewAndHold() -- and it's the wait() in that method that, >>of course, was blocking. Obviously you can't have the main thread wait >>for itself. >> >>If others can suggest the "right" way to do this, that would be welcome. >>How is this sort of thing supposed to be handled? >> >>My fix is not satisfactory. I think several things are broken: >> >> - can't load a file on the command line >> - can't use moveTo in a scriptWait() command. >> - refresh script command doesn't >> >>What's the correct fix? >> >>Bob >> >> >> >> >> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
