On Fri, Sep 28, 2012 at 8:39 AM, Andreas Truszkowski <atruszkow...@gmx.de>wrote:
> Hi,
>
> 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
> SmarterJmolAdapter(),
> 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,
> Andreas
>
>
> ------------------------------------------------------------------------------
> Got visibility?
> Most devs has no idea what their production app looks like.
> Find out how fast your code is with AppDynamics Lite.
> http://ad.doubleclick.net/clk;262219671;13503038;y?
> http://info.appdynamics.com/FreeJavaPerformanceDownload.html
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
------------------------------------------------------------------------------
Got visibility?
Most devs has no idea what their production app looks like.
Find out how fast your code is with AppDynamics Lite.
http://ad.doubleclick.net/clk;262219671;13503038;y?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users