import IGES file exception

I try to import an IGES file using open cascade and get an exception

The code:

IGESControl_Reader reader;
IFSelect_ReturnStatus stat = reader.ReadFile("filePath");
Standard_Boolean ok = reader.TransferRoots();

TopoDS_Shape shape = reader.OneShape();​

I get stat = IFSelect_RetDone in the reader.ReadFile("filePath") line
I get an exception in the reader.TransferRoots() line

IGES file attached

 

 

Attachments: 
Roi Berlin's picture

UPDATE

This code works

I had some issues in my project

Thank you all