From d205fdf681893f267f7202b2508bbc5ed897c48a Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 16 Dec 2009 13:24:29 +0000 Subject: [PATCH] Fix a problem of RTTI data initialization in the libraries loaded by Python (SWIG-modules, etc). Without this change, dynamic_cast<..> operator does not work that can cause runtime error (like crash or incorrect operating of some functionality). --- src/KERNEL_PY/salome.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/KERNEL_PY/salome.py b/src/KERNEL_PY/salome.py index 00371c488..9f7b0b1f7 100755 --- a/src/KERNEL_PY/salome.py +++ b/src/KERNEL_PY/salome.py @@ -85,6 +85,8 @@ variables: from salome_kernel import * from salome_study import * from salome_iapp import * +import dl, sys +sys.setdlopenflags(dl.RTLD_NOW | dl.RTLD_GLOBAL) orb, lcc, naming_service, cm,sg=None,None,None,None,None myStudyManager, myStudyId, myStudy, myStudyName=None,None,None,None -- 2.39.2