Catch Standard_ConstructionError

Hello ,

I am creating a B-Spline surface but the code ( see below ) does not catch the Construction Error. It causes an exception but does not catch it. I have found this problem most of the time with Geom_BSplineSurface constructors.

Please help

regards - prasad

--------------------------- part of the code ---------------------

try {

cout

Handle(Geom_BSplineSurface) Bss = new Geom_BSplineSurface(poles,

uk , vk ,

umult, vmult ,

udeg , vdeg ,

uper , vper );

done = 1;

cout

cout.flush();

} catch ( Standard_ConstructionError e ) {

Bss = NULL;

done = 0;

} --------------------------

Mikael Aronsson's picture

Hi !

Is this on Windows or UNIX ? I do not have problems catching exceptions.

Do try/catch work in other parts of your application ?

Mikael