From 00de63973795a2d74af7fdc010c1b31339b49619 Mon Sep 17 00:00:00 2001 From: enk Date: Fri, 25 May 2007 13:44:46 +0000 Subject: [PATCH] Fixed bug with dinamic loading of ACIS plugin --- src/GEOMImpl/GEOMImpl_ExportDriver.cxx | 5 ++++- src/GEOMImpl/GEOMImpl_ImportDriver.cxx | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/GEOMImpl/GEOMImpl_ExportDriver.cxx b/src/GEOMImpl/GEOMImpl_ExportDriver.cxx index 77d6acc32..190116ccb 100644 --- a/src/GEOMImpl/GEOMImpl_ExportDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ExportDriver.cxx @@ -111,7 +111,10 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(TFunction_Logbook& log) const int res = fp( aShape, aFileName, aFormatName ); // unload plugin library - UnLoadLib( anExportLib ); + // commented by enk: + // the bug was occured: using ACIS Import/Export plugin + // UnLoadLib( anExportLib ); + if ( res ) log.SetTouched(Label()); diff --git a/src/GEOMImpl/GEOMImpl_ImportDriver.cxx b/src/GEOMImpl/GEOMImpl_ImportDriver.cxx index b20706d1e..0d1480f85 100644 --- a/src/GEOMImpl/GEOMImpl_ImportDriver.cxx +++ b/src/GEOMImpl/GEOMImpl_ImportDriver.cxx @@ -106,7 +106,9 @@ Standard_Integer GEOMImpl_ImportDriver::Execute(TFunction_Logbook& log) const TopoDS_Shape aShape = fp( aFileName, aFormatName, anError ); // unload plugin library - UnLoadLib( anImportLib ); + // commented by enk: + // the bug was occured: using ACIS Import/Export plugin + //UnLoadLib( anImportLib ); if ( aShape.IsNull() ) { StdFail_NotDone::Raise(anError.ToCString()); -- 2.39.2