Bob,

Thank you for the suggestions. I see you're very busy
with more interesting features of Jmol, but I'm still having problems
with this...

> >
> >>scriptWait() should do precisely what you are interested in doing. I 
> >>think you just haven't found the right way to wait on that thread.
> >>    
> >>
> >
> >All I've tried is simply 'viewer.scriptWait(command)' in a block
> >of otherwise functioning, thread-naive, java code. This causes the app
> >to hang
> >indefinitely on this line. 
> >
> >  
> >
> this surprises me. I'll try that myself. Clearly it can work -- Jmol is 
> doing it already. What could it be? Miguel should know.
> 

Has anyone else tried viewer.scriptWait() in application code?
It still hangs the app up for me.

> You could make a "budget" scriptWait that doesn't return any strings and 
> see if that works better for you:
> 
> void scriptWaitVoid(String strScript) {
>     Eval e = new Eval(this);
>     if (e.loadScriptString(strScript, false)) {
>       e.runEval();
>     }
> }
> 
> Do you want to try that?

Tried this, same problem as with scriptWait(), I'm afraid.

Any more help appreciated,

Thanks,

Dave

-- 
  Dave Evans
  [EMAIL PROTECTED]
  http://www.davidaevans.org


-------------------------------------------------------------------------
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

Reply via email to