Problems with getting output file - DUMP method

Hello @all,

Somebody knows how to get an output file without application crash...

...

fstream fb;
fb.open("C:\\output.dat",ios::out);
math_Vector vec(1,3);
vec(3) = 1.2;
myMatrix(1,1) = vec(1);
myMatrix.SetRow(2,vec);

//vec.Dump(std::cout);
vec.Dump(fb);

... when i try this -> crash. When i try to use "vec.Dump(std::cout);" instead, app crashes too...

why?

thanks in advance
Taxi

DELORME's picture

Try to build your application in release mode, not in debug mode(OpenCascade v5.2 libs are provided in release mode).