I am having trouble with the "math_FunctionRoot" class. It is working fine in mode debug, but it aborts in release mode. I have checked the values in both modes and they are the same, but it aborts when constructing the instance math_FunctionRoot root;
It has a try-catch expression as you can see below:
math_FunctionRoot root_finder(derivative_func,0,0,0, 100);
catch (StdFail_NotDone &sf)
catch (Standard_Failure &sf)
This code works fine in debug mode but in release, the system crashes as it seems opencascade is no throwing any exception. Could tell me please why it is not throwing an exception and why it fails in release mode but not in debug mode?
Thanks ind advance.