Related pages

OC5.1 bug

Recently I updated OC4.0 to OC5.1 for my application and discovered the stable BUG
in TColStd_Array1OfReal class which cause the ASSERT in DEBUG session and completely wrong result in RELEASE session. The ASSERT ended up in the file: Standard_DemensionMismatch_0.cxx
function:
void Standard_DimensionMismatch::Throw() const
{
throw Standard_DimensionMismatch() ;
}

This is very serious problem for my applications based on OC library and I put on hold my
transition to OC5.1. I also think that it will cause inconvenience for advance users of OC
with the applications in free form curves and surfaces...

Regards
MS

PS
I am sending a couple of lines of code that were running in Cascade 2.0; OC3.0, are running in OC4.0 and failing in OC51:

TColStd_Array1OfReal Knot(1,BS_Crv.Dimen+1);
// This is exactly the place that ended up with the PROBLEM,
// that was described in the beginning
CasCad_Crv->KnotSequence(Knot); // OC51 Crash 17/01/04 MS
// --------------------------------------------
BS_Crv.Knot = ALLOC( (BS_Crv.Dimen+1), double,Ierror );
if (*Ierror) return;