[vtkusers] Error from GetCelNeighbors using vtk/Java

Dale Greer dmgreer at airmail.net
Wed May 22 15:55:15 EDT 2002


The following code

    int nc = adata.GetNumberOfCells();

    vtkIdList ptIds = new vtkIdList();
    vtkIdList clIds = new vtkIdList();
    for (int i = 0; i < nc; i++) {
     adata.GetCellNeighbors(i, ptIds, clIds);
    }

Produced this error,


An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x8df0b2f
Function name=vtkPolyData::GetCellNeighbors
Library=C:\PROGRA~1\vtk40\bin\vtkCommon.dll

Current Java thread:
 at vtk.vtkPolyData.GetCellNeighbors_10(Native Method)
 at vtk.vtkPolyData.GetCellNeighbors(vtkPolyData.java:52)
 at vrml.com.Conversion.read(Conversion.java:133)
 at vrml.com.Conversion.main(Conversion.java:217)




More information about the vtkusers mailing list