From: eap Date: Fri, 19 May 2006 13:25:14 +0000 (+0000) Subject: fix PAL12004. call OSD::SetSignal() in standalone mode only and enable FPE signal... X-Git-Tag: V3_2_0rc~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e7e6b0774701b85d89601214311a44b4a1743c91;p=modules%2Fsmesh.git fix PAL12004. call OSD::SetSignal() in standalone mode only and enable FPE signal in DEBUG mode only --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index b77a98773..de35bb8b6 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -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 } //=============================================================================