<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi,</div><div><br></div><div>I'm currently trying to find a way to manage vtk crashes when opening a file in Java.</div><div>Here is below a simple code:</div><div><br></div><div style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="2">vtkSTLReader stlReader = new vtkSTLReader();</font></div><div><font size="2"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">stlReader.SetFileName(inputFile.getAbsolutePath());</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">stlReader.Update();</span></font></div><div><br></div><div><span><span>I</span></span>f the file given by parameter is not a correct STL file (In this example it is a STL reader but this is the case for all
readers), the application will crash during the "update()" call.</div><div><br></div><div>Is there a way to handle these errors (by throwing exceptions) ?</div><div><br></div><div>Thanks much</div><div>Gilles</div></div></body></html>