<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Perhaps some code would be in order?&nbsp; I can say from experience that
if you are manually deleting vtk objects in java, bad things will happen
because of the recent implementation of weak-references in the vtk JNI.&nbsp;
I have not had any experiences like yours, however, but I could look at
your code.&nbsp; What version of vtk?
<p>Michael Bell wrote:
<blockquote TYPE=CITE>vtkgurus,
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I, and others have posted
a few messages about problems that occur when
<br>using java under vtk. An example of the issue is:
<p>1. Set up a scene
<br>2. On every mouse click, change the color of an actor with
<br>actor.GetProperty().SetColor(...)
<br>3. Intermittently, actor.GetProperty() returns null (not limited to
<br>GetProperty(). In general, members of a class become null randomly).
<p>With the help of others, I can say that
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. This problem does not
occur in unix
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. This problem does not
occur in C++ with nearly identical code
<p>Does anyone, especially a vtk developer, have any information about
<br>solutions or workarounds? Have you even run into this problem before?
It
<br>sounds like a garbage collection issue to me. Could it be a JNI issue
<br>unrelated to VTK? Please help; this is a showstopping problem.
<p>Thanks,
<br>michael
<p>_______________________________________________
<br>This is the private VTK discussion list.
<br>Please keep messages on-topic. Check the FAQ at: &lt;<a href="http://public.kitware.com/cgi-bin/vtkfaq">http://public.kitware.com/cgi-bin/vtkfaq</a>>
<br>Follow this link to subscribe/unsubscribe:
<br><a href="http://public.kitware.com/mailman/listinfo/vtkusers">http://public.kitware.com/mailman/listinfo/vtkusers</a></blockquote>

<pre>--&nbsp;
J.A. Lee
</pre>
&nbsp;</html>