From be9d58e19008b13a8e69e939cab749636c199037 Mon Sep 17 00:00:00 2001 From: caremoli Date: Mon, 16 Nov 2009 10:46:10 +0000 Subject: [PATCH] CCAR: Fix problem with libxml2 (initialization in thread followed by not needed xmlCleanupParser) --- src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx index 865635705..621b34c03 100644 --- a/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx +++ b/src/ModuleCatalog/SALOME_ModuleCatalog_impl.cxx @@ -27,6 +27,7 @@ // #include "SALOME_ModuleCatalog_impl.hxx" #include "SALOME_ModuleCatalog_Acomponent_impl.hxx" +#include #include #include #include "utilities.h" @@ -79,6 +80,8 @@ list splitStringToList(const string& theString, const string& theSeparat SALOME_ModuleCatalogImpl::SALOME_ModuleCatalogImpl(int argc, char** argv, CORBA::ORB_ptr orb) : _orb(orb) { if(MYDEBUG) MESSAGE("Catalog creation"); + /* Init libxml */ + xmlInitParser(); // Conversion rules for component types ComponentTypeConvert[GEOM] @@ -686,7 +689,6 @@ SALOME_ModuleCatalogImpl::_parse_xml_file(const char* file, MESSAGE("ModuleCatalog: could not parse file "<