From af12625ad65c12b51aef471449f65c6b1796edfd Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 29 Feb 2012 10:15:08 +0000 Subject: [PATCH] 0021500: EDF 2134 BLSURFPLUGIN: Error message when a problem occurs with the distene licence server Look for Dlim messages in the lig file --- src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 { -- 2.39.2