[vtkusers] Java, finalization and multi-threading

Laurent Peters laurent.peters at telemis.com
Thu Oct 16 10:59:51 EDT 2008


Hello,

>From what I understand, VTK API cannot be called from different threads at
the same time.

In my Java application, I manage to avoid concurrent calls to VTK.
But in the finalizer of vtkObjectBase class in Java, VTKDelete is called
from the Java finalization thread,
and therefore VTKDelete can be called at the same time as another VTK API
call.

I regularly see crashes of my application during stress testing.
Can this be the cause? What can I do to avoid it?

Thank you,
Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20081016/f58362d3/attachment.htm>


More information about the vtkusers mailing list