]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fixed Bug CTH11627 - V1.0.1 on RH8: Crash on closing a study
authorouv <ouv@opencascade.com>
Tue, 21 Feb 2006 15:43:20 +0000 (15:43 +0000)
committerouv <ouv@opencascade.com>
Tue, 21 Feb 2006 15:43:20 +0000 (15:43 +0000)
src/PyInterp/PyInterp_base.cxx

index a75c39bdd8ff54c794a5ce9044e8d7a366fd4bc0..e12bb9efc46bb3a57fa5d50026c8939229450eaa 100644 (file)
@@ -101,8 +101,11 @@ void PyInterp_base::initialize()
   // Create cStringIO to capture stdout and stderr
   PycString_IMPORT;
   //PycStringIO = (PycStringIO_CAPI *)xxxPyCObject_Import("cStringIO", "cStringIO_CAPI");
-  _vout = PycStringIO->NewOutput(128);
-  _verr = PycStringIO->NewOutput(128);
+  if( PycStringIO ) // CTH11627 : additional check
+  {
+    _vout = PycStringIO->NewOutput(128);
+    _verr = PycStringIO->NewOutput(128);
+  }
   
   // All the initRun outputs are redirected to the standard output (console)
   initRun();