From aad0b52307afbeabd03f57567ea7972f24f6cd67 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 12 Jul 2006 14:32:52 +0000 Subject: [PATCH] PAL12755: SALOME frozen with 'Load Script' and a python module. A fix by Christian CAREMOLI. --- src/SALOME_SWIG/SALOMEGUI_Swig.i | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/SALOME_SWIG/SALOMEGUI_Swig.i b/src/SALOME_SWIG/SALOMEGUI_Swig.i index 8ad7a3ae0..e960e05bf 100644 --- a/src/SALOME_SWIG/SALOMEGUI_Swig.i +++ b/src/SALOME_SWIG/SALOMEGUI_Swig.i @@ -32,6 +32,13 @@ %include "pointer.i" +/* Exception handler for all functions */ +%exception { + Py_BEGIN_ALLOW_THREADS + $action + Py_END_ALLOW_THREADS +} + class SALOMEGUI_Swig { public: -- 2.39.2