From: jfa Date: Fri, 16 Jun 2006 11:14:24 +0000 (+0000) Subject: PAL12628: Enabling FPE signal in GEOM leads to Salome crash with some video card... X-Git-Tag: T3_2_1_pre~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d0ed5b5b9cc3d40fe3a4051bd661ac867124fd88;p=modules%2Fgeom.git PAL12628: Enabling FPE signal in GEOM leads to Salome crash with some video card drivers. --- diff --git a/src/GEOM_I/GEOM_Gen_i.cc b/src/GEOM_I/GEOM_Gen_i.cc index 5d91dd4f1..7ddbe46c9 100644 --- a/src/GEOM_I/GEOM_Gen_i.cc +++ b/src/GEOM_I/GEOM_Gen_i.cc @@ -68,11 +68,20 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr orb, _impl = new ::GEOMImpl_Gen; - OSD::SetSignal( true ); + //work around PAL12004, PAL12628 + //OSD::SetSignal( true ); + bool raiseFPE; +#ifdef _DEBUG_ + raiseFPE = true; + char* envDisableFPE = getenv("DISABLE_FPE"); + if (envDisableFPE && atoi(envDisableFPE)) + raiseFPE = false; +#else + raiseFPE = false; +#endif + OSD::SetSignal( raiseFPE ); } - - //============================================================================ // function : ~GEOM_Gen_i() // purpose : destructor