I have moved all my projects to VS8.0 from VS6.0 which are based on opencascade6.3. I found that one of my 2D IGES file which I import using sample ImportExport throws stack overflow error. I tracked the problem and came to know that this 2D drawing has few hyperbola whose major and minor diameters are not number. In VS6.0 following code used to detect this and log the error which i never noticed till now. I do not mind if these hyperbola are missed and final drawing is sufficient for my project.
inline gp_Hypr::gp_Hypr (const gp_Ax2& A2,
const Standard_Real MajorRadius,
const Standard_Real MinorRadius):
But VS8.0 does not detect it and throws stack overflow after sometime.
To check same scenario, I compiled following sample code in VS6.0 and VS8.0 and found that VS6.0 sets l_bIsNum as true whereas VS8.0 sets it as false.
double l_dX = -10;
double l_dSq = sqrt(l_dX);
bool l_bIsNum = l_dSq
There may be many such lines of code which would fail due to change in IDE. Has anyone faced this problem? Could someone suggest if there is any project setting which needs to be changed?