[vtkusers] Catching VTK exceptions in Java

Shyam Prakash ramakrishna.prakash at quest-global.com
Fri Dec 5 03:55:57 EST 2003


Steve,
	Any error in vtk library will make your code crash. In java you
can not catch any errors that are thrown at JNI interfaces.

--Shyam

> -----Original Message-----
> From: vtkusers-admin at vtk.org [mailto:vtkusers-admin at vtk.org] On Behalf
Of
> Steve Joyce
> Sent: Friday, December 05, 2003 2:16 PM
> To: vtkusers at vtk.org
> Subject: [vtkusers] Catching VTK exceptions in Java
> 
> I am using VTK 4.2.3 with Java wrapping.
> Is it possible to catch exceptions that are thrown in the VTK
libraries
> within Java code?
> At the moment, if a VTK exception is thrown the Java application just
> exits.
> In particular, I'd like to catch out of memory errors, but catching
any
> error would be useful.
> 
> Thanks,
> Steve
> 
> 
> 
> 
> 
> ****Disclaimer***********
> This e-mail and any attachments may contain confidential and/or
privileged
> material; it  is for the intended addressee(s) only.  If you are not a
> named addressee, you must not use, retain or disclose such
information.
> 
> Serco cannot guarantee that the e-mail or any attachments are free
from
> viruses.
> 
> The views expressed in this e-mail are those of the originator and do
not
> necessarily represent the views of Serco.
> 
> Nothing in this e-mail shall bind Serco in any contract or obligation.
> 
> Serco Group plc.  Registered in England and Wales.  No: 2048608
> Registered Office:  Serco House, 16 Bartley Wood Business Park,
Bartley
> Way, Hook, Hampshire, RG27 9UY, United Kingdom.
> ****End Disclaimer*******
> <<<<GWIASIG 0.07>>>>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers




More information about the vtkusers mailing list