]> OCCT Git - occt-wok.git/commitdiff
OCC12131 Improvement of Exception mechanism on Unix and Linux platforms cdl, hxx...
authorcascade <cascade@opencascade.com>
Fri, 7 Apr 2006 19:58:02 +0000 (19:58 +0000)
committercascade <cascade@opencascade.com>
Fri, 7 Apr 2006 19:58:02 +0000 (19:58 +0000)
src/CDLFront/CDLFront.cxx

index 24f4f22a1ce4dbfc220584a7327e0b7271edc0b2..13c244247fa32222e49f97d58affd527fcc326c1 100755 (executable)
@@ -1341,9 +1341,9 @@ void Imported_Begin()
     ErrorMsg << "CDL" << "\"" << CDLFileName->ToCString() << "\"" <<  ", line " << CDLlineno << ": " << "Imported : " << Imported->FullName() << " is already defined." << endm;
     YY_nb_error++;
   }
-  for (i =1; i <= ListOfComments->Length(); i++) {
-     Imported->SetComment(ListOfComments->Value(i));
-  }
+  //for (i =1; i <= ListOfComments->Length(); i++) {
+  //     Imported->SetComment(ListOfComments->Value(i));
+  //}
 
   Private = Standard_False;
 }
@@ -2804,6 +2804,7 @@ int CDLTranslate(const Handle(MS_MetaSchema)&             aMetaSchema,
     CDLFileName = aFileName;
 
     try {
+      OCC_CATCH_SIGNALS
       ErrorLevel = TraductionMain(aFileName->ToCString());
     }
     catch(Standard_Failure) {