Microsoft C++ exception: Standard_Failure at memory location 0x003ef018

Dileep's picture

I am working with the BRepFilletAPI_MakeFillet class. here is my code:-

BRepFilletAPI_MakeFillet mkFillet(theShape);
mkFillet.Add(2.2,theEdge);
try{
mkFillet.Build();
}
catch(Standard_Failure ex){
///**********************
}
catch(...){
return;
}

the program is breaking after executing this line :- mkFillet.Build();
with showing this:-
" Microsoft C++ exception: Standard_Failure at memory location 0x003ef018".
without catching the exception.

please help me if anyone have an idea about what is happening...............

msv's picture

Catching OCC exceptions

Dear Dileep, you incorrectly use catch statement to catch OCC exceptions. I recommend you to study the following section of the documentation:
Handling exceptions

Dileep's picture

Dear msv, I could be able to

Dear msv, I could be able to solve my problem with your help. thank you very much for your time. :)

here is my code:-
#include
#include

try{

OCC_CATCH_SIGNALS
mkFillet.Build();
}
catch(Standard_Failure){

Handle(Standard_Failure) error = Standard_Failure::Caught();
return;
}

@Dileep

www.opencascade.com

Copyright 2011-2020
OPEN CASCADE SAS
Contact us