mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-01 08:15:37 +05:00
fix PAL12004. call OSD::SetSignal() in standalone mode only and enable FPE signal in DEBUG mode only
This commit is contained in:
parent
d81798ae5d
commit
e7e6b07747
@ -248,7 +248,8 @@ SMESH_Gen_i::SMESH_Gen_i( CORBA::ORB_ptr orb,
|
||||
myShapeReader = NULL; // shape reader
|
||||
mySMESHGen = this;
|
||||
|
||||
OSD::SetSignal( true );
|
||||
// set it in standalone mode only
|
||||
//OSD::SetSignal( true );
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
@ -421,6 +422,20 @@ GEOM_Client* SMESH_Gen_i::GetShapeReader()
|
||||
void SMESH_Gen_i::SetEmbeddedMode( CORBA::Boolean theMode )
|
||||
{
|
||||
myIsEmbeddedMode = theMode;
|
||||
|
||||
if ( !myIsEmbeddedMode ) {
|
||||
bool raiseFPE;
|
||||
#ifdef _DEBUG_
|
||||
raiseFPE = true;
|
||||
char* envDisableFPE = getenv("DISABLE_FPE");
|
||||
if (envDisableFPE && atoi(envDisableFPE))
|
||||
raiseFPE = false;
|
||||
#else
|
||||
raiseFPE = false;
|
||||
#endif
|
||||
OSD::SetSignal( raiseFPE );
|
||||
}
|
||||
// else OSD::SetSignal() is called in GUI
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
Loading…
Reference in New Issue
Block a user