From e7e6b0774701b85d89601214311a44b4a1743c91 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 19 May 2006 13:25:14 +0000 Subject: [PATCH] fix PAL12004. call OSD::SetSignal() in standalone mode only and enable FPE signal in DEBUG mode only --- src/SMESH_I/SMESH_Gen_i.cxx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) 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 } //============================================================================= -- 2.39.2