]> SALOME platform Git repositories - modules/superv.git/commitdiff
Salome HOME
Fix for bug PAL13256 on Debian Calibre3 platform from Jean Rahuel
authormkr <mkr@opencascade.com>
Fri, 25 Aug 2006 12:38:44 +0000 (12:38 +0000)
committermkr <mkr@opencascade.com>
Fri, 25 Aug 2006 12:38:44 +0000 (12:38 +0000)
( EDF255 GEOM-CAS6.1 Infinite loop ).

src/GraphBase/DataFlowBase_DataPort.cxx
src/GraphBase/DataFlowBase_XmlHandler.cxx
src/GraphExecutor/DataFlowExecutor_InNodeThreads.cxx
src/GraphExecutor/DataFlowExecutor_PyDynInvoke.cxx

index c60b7b282d21d39e03f8b9530074e0a46fe5598d..7cd29b85109f74c61defad9e37ffba58331b7acd 100644 (file)
@@ -92,10 +92,11 @@ void GraphBase::DataPort::InitialValues(CORBA::Any aValue ) {
   else if ( !strcmp( Type , "float" ) ) {
     cdebug << "float" << endl ;
 #ifdef REDHAT // mkr : debug for PAL12255
-    InitialValue <<= (double ) 0. ;
+    InitialValue <<= (float ) 0. ;
 #else     
-    double d = 0.;
-    InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR    double d = 0.;
+//JR    InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+    InitialValue <<= (CORBA::Float) 0. ;
 #endif
     
   }
@@ -104,8 +105,9 @@ void GraphBase::DataPort::InitialValues(CORBA::Any aValue ) {
 #ifdef REDHAT // mkr : debug for PAL12255
     InitialValue <<= (double ) 0. ;
 #else
-    double d = 0.;
-    InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR    double d = 0.;
+//JR    InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+    InitialValue <<= (CORBA::Double) 0. ;
 #endif
   }
   else { // Default
@@ -180,7 +182,8 @@ void GraphBase::DataPort::SetValue( const CORBA::Any * aDataValue ) {
 #ifdef REDHAT // mkr : debug for PAL12255
        *theValue <<= d ;
 #else
-       theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR   theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+       *theValue <<= (CORBA::Double) d ;
 #endif
         *theValue >>= d ;
 #if ValueTrace
@@ -250,7 +253,8 @@ void GraphBase::DataPort::SetValue( const CORBA::Any * aDataValue ) {
 #ifdef REDHAT // mkr : debug for PAL12255
        *theValue <<= d ;
 #else
-       theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR   theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+       *theValue <<= (CORBA::Double) d ;
 #endif
         *theValue >>= d ;
 
@@ -403,7 +407,8 @@ void GraphBase::DataPort::SetValue( const CORBA::Any * aDataValue ) {
 #ifdef REDHAT // mkr : debug for PAL12255
        *theValue <<= d ;
 #else
-       theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR   theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+       *theValue <<= (CORBA::Double) d ;
 #endif
         *theValue >>= d;
 #if ValueTrace
index 6f32e9867e5d2f990d62aff0ba7b8da4edb633a3..f7452898bca1923e6211f4273a031669363446bc 100644 (file)
@@ -730,7 +730,8 @@ bool GraphBase::XmlHandler::endElement( const QString&,
 #ifdef REDHAT // mkr : debug for PAL12255
              aLink.aLinkValue <<= (double ) 0. ;
 #else
-             aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR         aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+             aLink.aLinkValue <<= (CORBA::Double) 0. ;
 #endif
               aLink.aLinkValue >>= d;
 #if TRACE
@@ -791,8 +792,10 @@ bool GraphBase::XmlHandler::endElement( const QString&,
                aLink.aLinkValue <<= d;
                aLinkValue <<= d;
 #else
-               aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
-               aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR           aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR           aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+               aLink.aLinkValue <<= (CORBA::Double) d;
+               aLinkValue <<= (CORBA::Double) d;
 #endif         
                aLinkDoubleValue = new CORBA::Any( aLinkValue );
 #if TRACE
index 8aa1e9ab5cb4992cad4a390df4c79dabf60521e2..cec877a23b70c1640358a4fc8be041d620f9968d 100644 (file)
@@ -3286,7 +3286,8 @@ void GraphExecutor::InNode::InParametersSet( bool & Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= f ;
 #else
-         D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR     D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+          D.Value <<= (CORBA::Float) f ;
 #endif
 #if InParametersSetTrace
           cdebug << "string '" << t << "' --> " << setw(25) << setprecision(18) << d << " --> float " << " = "
@@ -3300,7 +3301,8 @@ void GraphExecutor::InNode::InParametersSet( bool & Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= d ;
 #else
-         D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR     D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+          D.Value <<= (CORBA::Double) d ;
 #endif
 #if InParametersSetTrace
           cdebug << "string '" << t << " --> double " << setw(25) << setprecision(18) << d ;
@@ -3371,7 +3373,8 @@ void GraphExecutor::InNode::InParametersSet( bool & Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= f ;
 #else
-         D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR     D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+          D.Value <<= (CORBA::Float) f ;
 #endif
 //          theOutPort->Value( D.Value ) ;
         }
@@ -3381,7 +3384,8 @@ void GraphExecutor::InNode::InParametersSet( bool & Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= d ;
 #else
-          D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR      D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+          D.Value <<= (CORBA::Double) d ;
 #endif
 //          theOutPort->Value( D.Value ) ;
         }
@@ -3439,7 +3443,8 @@ void GraphExecutor::InNode::InParametersSet( bool & Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= f ;
 #else
-          D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR      D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+          D.Value <<= (CORBA::Float) f ;
 #endif
 //          theOutPort->Value( D.Value ) ;
         }
@@ -3503,7 +3508,8 @@ void GraphExecutor::InNode::InParametersSet( bool & Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= f ;
 #else
-          D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR      D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+          D.Value <<= (CORBA::Float) f ;
 #endif
 //          theOutPort->Value( D.Value ) ;
         }
@@ -3512,7 +3518,8 @@ void GraphExecutor::InNode::InParametersSet( bool & Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= d ;
 #else
-          D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR      D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+          D.Value <<= (CORBA::Double) d ;
 #endif
 //          theOutPort->Value( D.Value ) ;
         }
@@ -3604,7 +3611,8 @@ void GraphExecutor::InNode::InOutParametersSet( int nOutParams ,
 #ifdef REDHAT // mkr : debug for PAL12255
       D.Value <<= f ;
 #else
-      D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR  D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+      D.Value <<= (CORBA::Float) f ;
 #endif
     }
     else if ( !strcmp( Type , "double" ) ) {
@@ -3612,7 +3620,8 @@ void GraphExecutor::InNode::InOutParametersSet( int nOutParams ,
 #ifdef REDHAT // mkr : debug for PAL12255
       D.Value <<= d ;
 #else
-      D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR  D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+      D.Value <<= (CORBA::Double) d ;
 #endif
     }
     else {
@@ -3762,7 +3771,8 @@ bool GraphExecutor::InNode::OutParametersSet( bool Err ,
 #ifdef REDHAT // mkr : debug for PAL12255
           D.Value <<= d ;
 #else
-          D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR      D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+          D.Value <<= (CORBA::Double) d ;
 #endif
 #if OutParametersSetTrace
           cdebug << ThreadNo() << " " << f << "(float)" << endl ;
index 8781b6e845b10152b51fe64ee76249d48fd50df8..8f1335689d8f369f37369f13fe6f8e2637bf8cf1 100644 (file)
@@ -658,7 +658,8 @@ bool GraphExecutor::InNode::PyDynInvoke( PyObject * MyPyRunMethod ,
 #ifdef REDHAT // mkr : debug for PAL12255
           data <<= f ;
 #else
-         data.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR     data.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+          data <<= (CORBA::Float) f ;
 #endif
 #if PyDynInvokeTrace
          if ( ArgValue )
@@ -706,7 +707,8 @@ bool GraphExecutor::InNode::PyDynInvoke( PyObject * MyPyRunMethod ,
 #ifdef REDHAT // mkr : debug for PAL12255
           data <<= d ;
 #else
-         data.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR     data.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+          data <<= (CORBA::Double) d ;
 #endif
 #if PyDynInvokeTrace
          if ( ArgValue )