]> SALOME platform Git repositories - modules/yacs.git/blobdiff - src/evalyfx/YACSEvalSession.cxx
Salome HOME
Successful first launch of scheme on cluster.
[modules/yacs.git] / src / evalyfx / YACSEvalSession.cxx
index 6f4ca712886b8cf193754c05073f5e9b93c20a93..b4f1e2a5bf0fbc3cdb41084962f8ba2ecbc5d7e8 100644 (file)
@@ -19,6 +19,8 @@
 // Author : Anthony Geay (EDF R&D)
 
 #include "YACSEvalSession.hxx"
+#include "YACSEvalSessionInternal.hxx"
+
 #include "Exception.hxx"
 
 #include <Python.h>
@@ -27,7 +29,7 @@ const char YACSEvalSession::KERNEL_ROOT_DIR[]="KERNEL_ROOT_DIR";
 
 const char YACSEvalSession::CORBA_CONFIG_ENV_VAR_NAME[]="OMNIORB_CONFIG";
 
-YACSEvalSession::YACSEvalSession():_isLaunched(false),_port(-1),_salomeInstanceModule(0),_salomeInstance(0)
+YACSEvalSession::YACSEvalSession():_isLaunched(false),_port(-1),_salomeInstanceModule(0),_salomeInstance(0),_internal(new YACSEvalSessionInternal)
 {
   if(!Py_IsInitialized())
     Py_Initialize();
@@ -37,6 +39,7 @@ YACSEvalSession::YACSEvalSession():_isLaunched(false),_port(-1),_salomeInstanceM
 
 YACSEvalSession::~YACSEvalSession()
 {
+  delete _internal;
   if(isLaunched())
     {
       PyObject *terminateSession(PyObject_GetAttrString(_salomeInstance,const_cast<char *>("stop")));//new