PAL10867: noexcepthandler option in GUI not working. Disable signals catching.

This commit is contained in:
jfa 2006-09-28 08:18:51 +00:00
parent 933c17cfd8
commit ffab2d99a0

View File

@ -426,6 +426,10 @@ void SMESH_Gen_i::SetEmbeddedMode( CORBA::Boolean theMode )
myIsEmbeddedMode = theMode; myIsEmbeddedMode = theMode;
if ( !myIsEmbeddedMode ) { if ( !myIsEmbeddedMode ) {
//PAL10867: disable signals catching with "noexcepthandler" option
char* envNoCatchSignals = getenv("NOT_INTERCEPT_SIGNALS");
if (!envNoCatchSignals || !atoi(envNoCatchSignals))
{
bool raiseFPE; bool raiseFPE;
#ifdef _DEBUG_ #ifdef _DEBUG_
raiseFPE = true; raiseFPE = true;
@ -439,6 +443,7 @@ void SMESH_Gen_i::SetEmbeddedMode( CORBA::Boolean theMode )
} }
// else OSD::SetSignal() is called in GUI // else OSD::SetSignal() is called in GUI
} }
}
//============================================================================= //=============================================================================
/*! /*!