From: Joerg K. W. <we...@in...> - 2003-08-18 08:05:04
|
Hello Gert, > I suppose you mean by "if this works" that the system shouldn't crash > anymore. > > Well, indeed, it doesn't crash any further. But, now the ViewerFrame is > shown while the molecules can't be drawn. Shouldn't the execution of > Viewer.main() better be entirely stopped when a buggy Java3D is detected? Yes !;-) The problem is located in one of this 4 lines, but which one !? GraphicsConfigTemplate3D tmpl = new GraphicsConfigTemplate3D(); GraphicsEnvironment env = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice device = env.getDefaultScreenDevice(); GraphicsConfiguration config = device.getBestConfiguration(tmpl); There seems definitely a problem when getting a screen device, but i can't see why ? http://www.j3d.org/tutorials/raw_j3d/chapter1/world_window.html The clean version will be to throw an Exception or throw only one single error in the constructor before line 72, which is also clearer than adding to every method a logging error or Exception (my previous mail was a quick fix !;-) Additionally i've nothing usefull found in the Java3D mailing lists ... Regards, Joerg -- Dipl. Chem. Joerg K. Wegner Center of Bioinformatics Tuebingen (ZBIT) Department of Computer Architecture Univ. Tuebingen, Sand 1, D-72076 Tuebingen, Germany Phone: (+49/0) 7071 29 78970 Fax: (+49/0) 7071 29 5091 E-Mail: mailto:we...@in... WWW: http://www-ra.informatik.uni-tuebingen.de -- Never mistake motion for action. E. Hemingway |