Crashes when using BRepExtrema_DistShapeShape

Hello,

I use OpenCascade V7.4.0 for windows 32bit.

I am currently using BRepExtrema_DistShapeShape to find the distance between two Solids.

When I try to measure the distance between a certain shape ((1) and (2) in the attached image), the software Crashe.

As a result of debugging, the software Crashe in the declaration part of BRepExtrema_DistShapeShape of the following source.

 

[MyCode] 

TopoDS_Shape shapeInport; // Attached image (1)
TopoDS_Shape shapeComp; // Attached image (2)

 

BRepExtrema_DistShapeShape measureDist( shapeComp, shapeInport ); // Crashe

 

What could be the reason for the crash in BRepExtrema_DistShapeShape?

Also, is it possible to detect a crash before running BRepExtrema_DistShapeShape?

 

Best regards.

Attachments: