1) IPAL9273 (Application crashes after trying to close Graph Supervisor viewer with running dataflow)
2) IPAL9369 (3.0.0 (debianex: INSTALL2): CRASH after link deletion of the running dataflow)
3) IPAL9731 (CRASH after trying to kill dataflow execution)
#endif
}
- req->invoke();
-
+ // IPAL9273, 9369, 9731 : replace blocking function invoke() with non blocking send_deferred()
+ // to provide the correct process of killing dataflow execution
+ req->send_deferred() ;
+ while( !req->poll_response() ) {}
+ req->get_response();
+
if( req->env()->exception() ) {
req->env()->exception()->_raise() ;
return ; // pas utile ?
break;
}
- long sec = myNode->getEngine()->CpuUsed();
+ long sec = 0;
+ // IPAL9273, 9369, 9731
+ if ( theState != SUPERV_Kill && myNode->getMain()->getDataflow()->State() != SUPERV_Kill )
+ sec = myNode->getEngine()->CpuUsed();
char hms[9];
long s = sec/3600;
hms[0]=(char)(((s/10)%10)+48);
QMessageBox::warning(SUIT_Session::session()->activeApplication()->desktop(), tr("ERROR"), tr("MSG_DF_NOTRUNNING"));
}
else if (dataflow->Kill()) {
- getMessage()->putMessage( tr("MSG_GRAPH_KILLED") );
+ // IPAL9273, 9369, 9731 : to avoid two equal messages about killing dataflow
+ // execution in the Message Console
+ //getMessage()->putMessage( tr("MSG_GRAPH_KILLED") );
sync();
}
else {