[vtkusers] java problems (swing)
Christian Werner
christian.werner at bruker.ch
Fri Jul 30 05:12:16 EDT 2004
Workaround for exit crashes with nvidia 1.0-6106:
Make your Java application exit cleanly without calling System.exit().
This is a bit tricky to do: you'll have to dispose() all top-level windows,
terminate your non-daemon helper threads, etc., there's more
information on that subject in
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/doc-files/AWTThreadIssues.html
I succeeded in doing this for my own application that uses OpenGL
through JNI with Java 1.5.0-beta3-b57: it now exits smoothly without crashing.
It seems to be important to use Java 1.5, as AFAIK, a few related bugfixes have
only been committed to this release.
The same might work for vtk and Java -- I didn't try (and won't do it in the
near future) as I'm not currently using it.
BTW, make sure to monitor Java bug #5073103 on
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5073103
HTH,
-chris
More information about the vtkusers
mailing list