Salome HOME
MPV: Merge V1_2d
[modules/superv.git] / src / GraphBase / DataFlowBase_InLineNode.cxx
index e182718d04dd54681bccc2faf3b08581931ae816..315e6ed44ebd33863bef4d20e4ea85e9ac278d76 100644 (file)
@@ -58,6 +58,7 @@ GraphBase::InLineNode::InLineNode( CORBA::ORB_ptr ORB ,
                                            X , Y ,
                                            Graph_prof_debug , Graph_fdebug ) {
   _PythonFunction = SUPERV::ListOfStrings() ;
+  _MyPyRunMethod = NULL ;
   cdebug_in << "GraphBase::InLineNode::Node "  << this 
             << "' _Name "
             << (void *) Name() << " '" << Name() << " _Comment "
@@ -103,6 +104,7 @@ GraphBase::InLineNode::InLineNode( CORBA::ORB_ptr ORB ,
             << ServiceInParameter().length()
             << ") Out(" << ServiceOutParameter().length() << ")" << endl ;
 
+  _MyPyRunMethod = NULL ;
   SetPythonFunction( FuncName , aPythonFunction ) ;
   SALOME_ModuleCatalog::Service aNodeService ;
   aNodeService.ServiceName = NodeName ;
@@ -135,8 +137,10 @@ void GraphBase::InLineNode::SetPythonFunction( const char * FuncName ,
   if ( aPythonFunction.length() == 1 ) {
     cdebug << " aPythonFunction[ 0 ] '" << aPythonFunction[ 0 ] << "'" ;
   }
-  cdebug << endl ;
-  _FuncName = my_strdup( FuncName ) ;
+  cdebug << " FuncName " << FuncName << endl ;
+  _FuncName = my_strblkdup( FuncName ) ;
+  cdebug << "GraphBase::InLineNode::SetPythonFunction FuncName '" << FuncName << "' --> '"
+         << _FuncName << "'" << endl ;
   if ( ( aPythonFunction.length() == 0 ) ||
          ( aPythonFunction.length() == 1 && strlen( aPythonFunction[ 0 ] ) == 0 ) ) {
     _PythonFunction.length( 0 ) ;