PAL12628: Enabling FPE signal in GEOM leads to Salome crash with some video card drivers.

This commit is contained in:
jfa 2006-06-16 11:14:24 +00:00
parent 6a137c7733
commit d0ed5b5b9c

View File

@ -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