Back to index

salome-gui  6.5.0
SalomeApp_ExceptionHandler.cxx File Reference
#include "SalomeApp_ExceptionHandler.h"
#include "CASCatch.hxx"
#include "Basics_OCCTVersion.hxx"
#include <OSD.hxx>
#include <stdexcept>
#include <exception>
#include <QString>

Go to the source code of this file.


getExceptionHandler ()
 Create new SUIT_ExceptionHandler.

Function Documentation

Create new SUIT_ExceptionHandler.

Definition at line 107 of file SalomeApp_ExceptionHandler.cxx.

  // MSV 2006-04-26: work around PAL12004 "VTK window => SIGFPE Arithmetic Exception Detected"
  // We disable FPE signal as it was in earlier versions of SALOME. It is enabled
  // only in debug mode if the environment variable DISABLE_FPE is not set to 1.
  bool raiseFPE;
#if defined(_DEBUG_) | defined(_DEBUG) //the Last for WNT default settings
  raiseFPE = true;
  char* envDisableFPE = getenv("DISABLE_FPE");
  if (envDisableFPE && atoi(envDisableFPE))
    raiseFPE = false;
  raiseFPE = false;

  return new SalomeApp_ExceptionHandler( raiseFPE );