From d0ed5b5b9cc3d40fe3a4051bd661ac867124fd88 Mon Sep 17 00:00:00 2001 From: jfa Date: Fri, 16 Jun 2006 11:14:24 +0000 Subject: [PATCH] PAL12628: Enabling FPE signal in GEOM leads to Salome crash with some video card drivers. --- src/GEOM_I/GEOM_Gen_i.cc | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 -- 2.39.2