mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-30 01:50:34 +05:00
PAL12628: Enabling FPE signal in GEOM leads to Salome crash with some video card drivers.
This commit is contained in:
parent
6a137c7733
commit
d0ed5b5b9c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user