delete(_id) ;
_thisObj->_remove_ref();
}
+ else {
+ MESSAGE("LNode_Impl::destroy ERROR ") ;
+ }
if ( !CORBA::is_nil( aCoupled ) ) {
- aCoupled->SetCoupled( "" ) ;
+// aCoupled->SetCoupled( "" ) ; : Used in GraphBase::Graph::RemoveNode( EndLoopNode ) :
aCoupled->destroy() ;
}
+// Valid() only after deletion of the corresponding EndLoopNode :
+ DataFlowEditor()->UnValid() ;
}
-// endService( "LNode_Impl::Destroy" );
+ endService( "LNode_Impl::Destroy" );
}
bool LNode_Impl::Delete() {
beginService( "LNode_Impl::Delete" );
- bool RetVal = false ;
+ bool RetVal = false ;
if ( DataFlowEditor()->IsEditing() ) {
+ DeletePorts() ;
RetVal = DataFlowEditor()->RemoveNode( Name() ) ;
- if ( RetVal ) {
- RetVal = DataFlowEditor()->IsValid() ;
- }
+// Valid() only after deletion of the corresponding EndLoopNode :
+// if ( RetVal ) {
+// RetVal = DataFlowEditor()->IsValid() ;
+// }
}
endService( "LNode_Impl::Delete" );
return RetVal ;