From: eap Date: Wed, 29 Feb 2012 10:15:08 +0000 (+0000) Subject: 0021500: EDF 2134 BLSURFPLUGIN: Error message when a problem occurs with the distene... X-Git-Tag: V6_5_0a1~10 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=af12625ad65c12b51aef471449f65c6b1796edfd;p=plugins%2Fhybridplugin.git 0021500: EDF 2134 BLSURFPLUGIN: Error message when a problem occurs with the distene licence server Look for Dlim messages in the lig file --- diff --git a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx index c14eef8..cb046a3 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx @@ -3971,8 +3971,10 @@ bool GHS3DPlugin_GHS3D::storeErrorDescription(const TCollection_AsciiString& log } // end while if ( errDescription.empty() ) { // no errors found - char msg[] = "connection to server failed"; - if ( search( &buf[0], bufEnd, msg, msg + strlen(msg)) != bufEnd ) + char msgLic1[] = "connection to server failed"; + char msgLic2[] = " Dlim "; + if ( search( &buf[0], bufEnd, msgLic1, msgLic1 + strlen(msgLic1)) != bufEnd || + search( &buf[0], bufEnd, msgLic2, msgLic2 + strlen(msgLic2)) != bufEnd ) errDescription << "Licence problems."; else {