From 82252a99647009ea2439676dd79fe5920e2f3748 Mon Sep 17 00:00:00 2001 From: apo Date: Tue, 29 Nov 2005 15:11:45 +0000 Subject: [PATCH] To avoid run-time error messages --- src/PIPELINE/VISU_SphereWidget.cxx | 2 -- src/VVTK/VVTK_Recorder.cxx | 5 ++++- 2 files changed, 4 insertions(+), 3 deletions(-) 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; -- 2.39.2