From: apo Date: Tue, 29 Nov 2005 15:11:45 +0000 (+0000) Subject: To avoid run-time error messages X-Git-Tag: TG-D5-38-2003_D2005-20-12~100 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=82252a99647009ea2439676dd79fe5920e2f3748;p=modules%2Fvisu.git To avoid run-time error messages --- diff --git a/src/PIPELINE/VISU_SphereWidget.cxx b/src/PIPELINE/VISU_SphereWidget.cxx index 3ecbf95b..76608c7c 100755 --- a/src/PIPELINE/VISU_SphereWidget.cxx +++ b/src/PIPELINE/VISU_SphereWidget.cxx @@ -90,8 +90,6 @@ VISU_SphereWidget::VISU_SphereWidget(){ //==================================================================== VISU_SphereWidget::~VISU_SphereWidget() { - this->SetEnabled(0); - // mySphereActor->Delete(); mySphereMapper->Delete(); mySphereSource->Delete(); diff --git a/src/VVTK/VVTK_Recorder.cxx b/src/VVTK/VVTK_Recorder.cxx index ca2e1aa5..eb9dd83a 100755 --- a/src/VVTK/VVTK_Recorder.cxx +++ b/src/VVTK/VVTK_Recorder.cxx @@ -100,7 +100,10 @@ void VVTK_Recorder::CheckExistAVIMaker() int iErr, iES; // myErrorStatus=0; - iErr=system(myNameAVIMaker); + std::string anAVIMakeCheck("which "); + anAVIMakeCheck += myNameAVIMaker; + anAVIMakeCheck += " >& /dev/null"; + iErr=system(anAVIMakeCheck.c_str()); iErr=WEXITSTATUS(iErr); if (iErr==127){ myErrorStatus=iErr;