On Fri, Sep 28, 2012 at 8:39 AM, Andreas Truszkowski <atruszkowski@gmx.de> wrote:

instanciating several JmolViewer instances leads in overwritin of each
other. Am I right that Jmol is not thread safe?

No. We do all sorts of things with multiple viewers. There are no static objects, only static constants.

What I am going to do:
  I will use one instance of the JmolViewer for displaying structures
whereby another instance shall render images in a background thread.
The code forinstantiation is
viewer = JmolViewer.allocateViewer((panel or null), new
                     null, null, null, null, null);

Is it possible to get it work in a single virtual machine or have I to
run a second JVM to get this work?

just allocate another viewer, and you should be fine. What exact problems are you seeing?

Bob Hanson
Kind regards,

Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
Jmol-users mailing list

Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN

If nature does not answer first what we want,
it is better to take what answer we get.

-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900