Fixed bug with dinamic loading of ACIS plugin

This commit is contained in:
enk 2007-05-25 13:44:46 +00:00
parent 6db71a9f9d
commit 00de639737
2 changed files with 7 additions and 2 deletions

View File

@ -111,7 +111,10 @@ Standard_Integer GEOMImpl_ExportDriver::Execute(TFunction_Logbook& log) const
int res = fp( aShape, aFileName, aFormatName ); int res = fp( aShape, aFileName, aFormatName );
// unload plugin library // unload plugin library
UnLoadLib( anExportLib ); // commented by enk:
// the bug was occured: using ACIS Import/Export plugin
// UnLoadLib( anExportLib );
if ( res ) if ( res )
log.SetTouched(Label()); log.SetTouched(Label());

View File

@ -106,7 +106,9 @@ Standard_Integer GEOMImpl_ImportDriver::Execute(TFunction_Logbook& log) const
TopoDS_Shape aShape = fp( aFileName, aFormatName, anError ); TopoDS_Shape aShape = fp( aFileName, aFormatName, anError );
// unload plugin library // unload plugin library
UnLoadLib( anImportLib ); // commented by enk:
// the bug was occured: using ACIS Import/Export plugin
//UnLoadLib( anImportLib );
if ( aShape.IsNull() ) { if ( aShape.IsNull() ) {
StdFail_NotDone::Raise(anError.ToCString()); StdFail_NotDone::Raise(anError.ToCString());