[vtkusers] Java vtkPanel

Kenji Tsumura kenji.tsumura at neosoftmedical.com
Mon Apr 18 16:30:28 EDT 2016


Hi,

I have a Java application that use vtkPanel. Precisely, I made a class that extends vtkRenderWindowPanel. When an object of the class is no more used, I would like to dispose the object. But I couldn't dispose it no matter how.  Java VisualVM indicates the object is JNI global reference. So  how can I dispose it? I used the Delete method and called vtkObject.JAVA_OBJECT_MANAGER.gc(false), but it didn't work (it works for other VTK objects). The attached file is a simple test code that demonstrates vtkRenderWindowPanel is never disposed.

I have seen similar post in the past, but never be answered in the way I hope. So I decided to post. I would appreciate any advice.
Thank you,

Kenji

"The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.

Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160418/13041e0e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: JFrameRenderer.java
Type: application/octet-stream
Size: 3478 bytes
Desc: JFrameRenderer.java
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20160418/13041e0e/attachment.obj>


More information about the vtkusers mailing list